From 24a7680412710c00a3a2bd0d288eef7f5391a0c6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 27 Dec 2004 19:18:47 +0000 Subject: Add second menu item that shows the graphs --- packages/pfstat.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 @@ pfstat is a small utility that collects packet filter statistics and produces graphs.
Services
+ + PFStat Graphs + pfstat is a small utility that collects packet filter statistics and produces graphs. + /pfstat/ +
Services
+
['installedpackages']['package']['$packagename']['configuration'] @@ -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"); -- cgit v1.2.3