diff options
author | heper <heper@users.noreply.github.com> | 2015-11-10 19:47:44 +0100 |
---|---|---|
committer | heper <heper@users.noreply.github.com> | 2015-11-10 19:47:44 +0100 |
commit | eef1e2a99c2a12e92d0a4933e4e65f586e5469d2 (patch) | |
tree | 2da35efbf9a88224423737b70cf9de78ff7ed699 /src/usr/local/www/status_rrd_graph_img.php | |
parent | c13cce216aeace190ffa98416b6c6d6ec6ec0c7b (diff) | |
download | pfsense-eef1e2a99c2a12e92d0a4933e4e65f586e5469d2.zip pfsense-eef1e2a99c2a12e92d0a4933e4e65f586e5469d2.tar.gz |
add dhcp-range to dhcpd & improve layout
Diffstat (limited to 'src/usr/local/www/status_rrd_graph_img.php')
-rw-r--r-- | src/usr/local/www/status_rrd_graph_img.php | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/usr/local/www/status_rrd_graph_img.php b/src/usr/local/www/status_rrd_graph_img.php index 4c789a1..5a5dbd8 100644 --- a/src/usr/local/www/status_rrd_graph_img.php +++ b/src/usr/local/www/status_rrd_graph_img.php @@ -1,4 +1,5 @@ <?php +/* $Id$ */ /* status_rrd_graph_img.php */ @@ -250,7 +251,7 @@ $colorprocessor = array('00AA00', '990000', '0000FF', 'DD9B00', '000000'); /* Memory Usage active, inact, free, cache, wire */ $colormemory = array('00AA00', '990000', '0000FF', '666666', 'DD9B00'); -/* MBUF Usage current, cache, total, max */ +/* Usage current, cache, total, max */ $colormbuf = array('0080FF', '00E344', 'FF0000', '000000'); /* Traffic Shaper Queues q1, q2, q3, q4, q5, q6, q7, q8, q9 */ @@ -284,7 +285,7 @@ $colorntpd = array('0080FF', '00E344', 'FF0000', '000000'); /* Captive Portal Concurrent Concurrent Users */ $colorcaptiveportalusers = array('990000'); -$colordhcpd = array('990000', '0000FF'); +$colordhcpd = array('990000', '0000FF', '000000'); switch ($curstyle) { case "absolute": @@ -1245,20 +1246,27 @@ if ((strstr($curdatabase, "-traffic.rrd")) && (file_exists("$rrddbpath$curdataba $graphcmd .= "--height 200 --width 620 "; $graphcmd .= "DEF:\"$curif-leases=$rrddbpath$curdatabase:leases:AVERAGE:step=$step\" "; $graphcmd .= "DEF:\"$curif-staticleases=$rrddbpath$curdatabase:staticleases:AVERAGE:step=$step\" "; - $graphcmd .= "LINE1:\"$curif-leases#{$colordhcpd[0]}:Active Leases\" "; - $graphcmd .= "LINE1:\"$curif-staticleases#{$colordhcpd[1]}:Static Leases\" "; + $graphcmd .= "DEF:\"$curif-dhcprange=$rrddbpath$curdatabase:dhcprange:AVERAGE:step=$step\" "; + $graphcmd .= "AREA:\"$curif-leases#{$colordhcpd[0]}:Active Leases\" "; + $graphcmd .= "LINE2:\"$curif-staticleases#{$colordhcpd[1]}:Static Leases\" "; + $graphcmd .= "LINE1:\"$curif-dhcprange#{$colordhcpd[2]}:Dhcp Range\" "; $graphcmd .= "COMMENT:\"\\n\" "; - $graphcmd .= "COMMENT:\"\t\t\t current\t\t average\t maximum\\n\" "; - $graphcmd .= "COMMENT:\"Leases Active\t\" "; + $graphcmd .= "COMMENT:\"\t\t\t current\t\t average\t\tmaximum\\n\" "; + $graphcmd .= "COMMENT:\"Active Leases\t\" "; $graphcmd .= "GPRINT:\"$curif-leases:LAST:%8.0lf \" "; $graphcmd .= "GPRINT:\"$curif-leases:AVERAGE:%8.0lf \" "; $graphcmd .= "GPRINT:\"$curif-leases:MAX:%8.0lf \" "; $graphcmd .= "COMMENT:\"\\n\" "; - $graphcmd .= "COMMENT:\"Leases Static\t\" "; + $graphcmd .= "COMMENT:\"Static Leases\t\" "; $graphcmd .= "GPRINT:\"$curif-staticleases:LAST:%8.0lf \" "; $graphcmd .= "GPRINT:\"$curif-staticleases:AVERAGE:%8.0lf \" "; $graphcmd .= "GPRINT:\"$curif-staticleases:MAX:%8.0lf \" "; $graphcmd .= "COMMENT:\"\\n\" "; + $graphcmd .= "COMMENT:\"Dhcp Range\t\t\" "; + $graphcmd .= "GPRINT:\"$curif-dhcprange:LAST:%8.0lf \" "; + $graphcmd .= "GPRINT:\"$curif-dhcprange:AVERAGE:%8.0lf \" "; + $graphcmd .= "GPRINT:\"$curif-dhcprange:MAX:%8.0lf \" "; + $graphcmd .= "COMMENT:\"\\n\" "; $graphcmd .= "COMMENT:\"\t\t\t\t\t\t\t\t\t\t\t\t\t" . strftime('%b %d %H\:%M\:%S %Y') . "\" "; } else { $data = false; |