2010-07-30 13:54:00 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$scale_min = '0';
|
2010-07-30 13:54:00 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
2010-07-30 13:54:00 +00:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrd_filename = rrd_name($device['hostname'], 'fdb_count');
|
2010-07-30 13:54:00 +00:00
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
$rrd_options .= " DEF:value=$rrd_filename:value:AVERAGE";
|
2011-04-23 11:05:50 +00:00
|
|
|
$rrd_options .= " DEF:value_min=$rrd_filename:value:MIN";
|
|
|
|
$rrd_options .= " DEF:value_max=$rrd_filename:value:MAX";
|
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
$rrd_options .= " COMMENT:'MACs Current Minimum Maximum Average\\n'";
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= ' AREA:value#EEEEEE:value';
|
|
|
|
$rrd_options .= ' LINE1.25:value#36393D:';
|
2011-09-23 10:47:43 +00:00
|
|
|
$rrd_options .= " 'GPRINT:value:LAST:%6.2lf ' 'GPRINT:value_min:MIN:%6.2lf '";
|
|
|
|
$rrd_options .= " 'GPRINT:value_max:MAX:%6.2lf ' 'GPRINT:value:AVERAGE:%6.2lf\\n'";
|