aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-12-27 19:18:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-12-27 19:18:47 +0000
commit24a7680412710c00a3a2bd0d288eef7f5391a0c6 (patch)
treee8a21cf66800e85058da6089280691ec0a689e40 /packages
parent8e18fd6f0b92feee82e6ed69b321b29ec9c38ed4 (diff)
downloadpfsense-packages-24a7680412710c00a3a2bd0d288eef7f5391a0c6.tar.gz
pfsense-packages-24a7680412710c00a3a2bd0d288eef7f5391a0c6.tar.bz2
pfsense-packages-24a7680412710c00a3a2bd0d288eef7f5391a0c6.zip
Add second menu item that shows the graphs
Diffstat (limited to 'packages')
-rw-r--r--packages/pfstat.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index bdfba4fa..b69fd94d 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -7,6 +7,12 @@
<tooltiptext>pfstat is a small utility that collects packet filter statistics and produces graphs.</tooltiptext>
<section>Services</section>
</menu>
+ <menu>
+ <name>PFStat Graphs</name>
+ <tooltiptext>pfstat is a small utility that collects packet filter statistics and produces graphs.</tooltiptext>
+ <url>/pfstat/</url>
+ <section>Services</section>
+ </menu>
<!-- configpath gets expanded out automatically and config items will be
stored in that location -->
<configpath>['installedpackages']['package']['$packagename']['configuration']</configpath>
@@ -181,7 +187,7 @@
}
}
foreach($config['installedpackages']['pfstat']['config'] as $pkgconfig) {
- fwrite($fout, "image \"" . $pkgconfig['imagename'] ."\" { \n");
+ fwrite($fout, "image \"/usr/local/www/pfstat/" . $pkgconfig['imagename'] ."\" { \n");
fwrite($fout, "from " . $pkgconfig['from'] . " " . $pkgconfig['fromclassification'] . " to now \n");
fwrite($fout, "width " . $pkgconfig['graphsizewidth'] . " height " . $pkgconfig['graphsizeheight'] . " \n");
fwrite($fout, " left \n");
@@ -191,6 +197,7 @@
fwrite($fout, "}\n\n");
}
fclose($fout);
+ system("mkdir -p /usr/local/www/pfstat 2>/dev/null");
system("/usr/bin/killall cron 2>/dev/null");
system("/usr/sbin/cron 2>/dev/null");
</custom_add_php_command_late>