From aa280d10b48cc02b8fd84c2df875e93961d81578 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Mon, 7 Mar 2005 00:50:27 +0000 Subject: Add queue graphs to a status page --- usr/local/www/status_queues.php | 138 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100755 usr/local/www/status_queues.php (limited to 'usr/local/www/status_queues.php') diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php new file mode 100755 index 0000000..cbceb70 --- /dev/null +++ b/usr/local/www/status_queues.php @@ -0,0 +1,138 @@ +#!/usr/local/bin/php + + + + +<?=gentitle("Status: Traffic shaper: Queues");?> + + + + + + +

Status: Traffic shaper: Queues

+
+ + + + + + + + + +
Name
+ +  
+"; + echo ""; + echo ""; + echo " "; + echo "
"; +?> + +
+

+ Note:
+ 1) Queue graphs take 5 seconds to sample data. +

+
+ + + + + 1) { + mwexec("/usr/bin/killall -9 pfctl php"); + exit; + } + + $stat_line_split = split("\|", $stats_line); + $packet_sampled = intval($stat_line_split[2]); + $speed = $stat_line_split[1]; + $borrows = intval($stat_line_split[3]); + + echo "\n"; + $i++; + } + + /* + * prevent user from running out of ram. + * firefox and ie can be a bear on ram usage! + */ + $counter++; + if($counter > 40) { + echo "Redirecting to Queue Status.

"; + echo ""; + mwexec("/usr/bin/killall -9 pfctl"); + exit; + } +} + +mwexec("/usr/bin/killall -9 pfctl php"); + +?> -- cgit v1.1