mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add HP Procurve FDB count graph
git-svn-id: http://www.observium.org/svn/observer/trunk@1543 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,6 +4,8 @@ if(is_numeric($id)) {
|
||||
$device = device_by_id_cache($id);
|
||||
}
|
||||
|
||||
#if(!device_permitted($device['device_id'])) { echo("Not Permitted"); exit; }
|
||||
|
||||
$title = generatedevicelink($device);
|
||||
|
||||
?>
|
||||
|
17
html/includes/graphs/device/fdb_count.inc.php
Executable file
17
html/includes/graphs/device/fdb_count.inc.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/fdb_count.rrd";
|
||||
|
||||
$rrd_options .= " DEF:value=$rrd_filename:value:AVERAGE";
|
||||
$rrd_options .= " CDEF:cvalue=value,86400,/";
|
||||
$rrd_options .= " COMMENT:'MACs Current Minimum Maximum Average\\n'";
|
||||
$rrd_options .= " AREA:cvalue#EEEEEE:value";
|
||||
$rrd_options .= " LINE1.25:cvalue#36393D:";
|
||||
$rrd_options .= " GPRINT:cvalue:LAST:%6.2lf\ GPRINT:cvalue:AVERAGE:%6.2lf\ ";
|
||||
$rrd_options .= " GPRINT:cvalue:MAX:%6.2lf\ GPRINT:cvalue:AVERAGE:%6.2lf\\\\n";
|
||||
|
||||
?>
|
Reference in New Issue
Block a user