mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Added support for AirOS and AirFibre from UBNT
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
//$rrd_options .= " -l 0 -E ";
|
||||
|
||||
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
|
||||
|
||||
if (file_exists($rrdfilename))
|
||||
{
|
||||
$rrd_options .= " COMMENT:'Octets Now Min Max\\n'";
|
||||
$rrd_options .= " DEF:txoctetsAll=".$rrdfilename.":txoctetsAll:AVERAGE ";
|
||||
$rrd_options .= " LINE1:txoctetsAll#CC0000:'Tx Octets ' ";
|
||||
$rrd_options .= " GPRINT:txoctetsAll:LAST:%0.2lf%s ";
|
||||
$rrd_options .= " GPRINT:txoctetsAll:MIN:%0.2lf%s ";
|
||||
$rrd_options .= " GPRINT:txoctetsAll:MAX:%0.2lf%s\\\l ";
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user