Added Cambium Support

This commit is contained in:
Paul Heinrichs
2016-03-22 09:32:26 -04:00
parent 6ad337532e
commit 72b9fd4d38
50 changed files with 1839 additions and 1 deletions
@@ -0,0 +1,32 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-250-dataRate.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Mbps Now Ave Max \\n'";
$rrd_options .= ' DEF:receiveDataRate='.$rrdfilename.':receiveDataRate:AVERAGE ';
$rrd_options .= ' DEF:transmitDataRate='.$rrdfilename.':transmitDataRate:AVERAGE ';
$rrd_options .= ' DEF:aggregateDataRate='.$rrdfilename.':aggregateDataRate:AVERAGE ';
$rrd_options .= " LINE2:receiveDataRate#0000FF:'Receive Data Rate ' ";
$rrd_options .= ' GPRINT:receiveDataRate:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:receiveDataRate:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:receiveDataRate:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:transmitDataRate#FF0000:'Transmit Data Rate ' ";
$rrd_options .= ' GPRINT:transmitDataRate:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitDataRate:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitDataRate:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:aggregateDataRate#008080:'Aggregate Data Rate ' ";
$rrd_options .= ' GPRINT:aggregateDataRate:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:aggregateDataRate:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:aggregateDataRate:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,27 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-250-modulationMode.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Mode Now Ave Max \\n'";
$rrd_options .= ' DEF:rxModulation='.$rrdfilename.':rxModulation:AVERAGE ';
$rrd_options .= ' DEF:txModulation='.$rrdfilename.':txModulation:AVERAGE ';
$rrd_options .= " LINE2:rxModulation#0000FF:'Receive Modulation ' ";
$rrd_options .= ' GPRINT:rxModulation:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:rxModulation:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:rxModulation:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:txModulation#FF0000:'Transmit Modulation ' ";
$rrd_options .= ' GPRINT:txModulation:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:txModulation:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:txModulation:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,27 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-250-receivePower.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:receivePower='.$rrdfilename.':receivePower:AVERAGE ';
$rrd_options .= ' DEF:noiseFloor='.$rrdfilename.':noiseFloor:AVERAGE ';
$rrd_options .= " LINE2:receivePower#00FF00:'Receive Power ' ";
$rrd_options .= ' GPRINT:receivePower:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:receivePower:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:receivePower:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:noiseFloor#000000:'Noise Floor ' ";
$rrd_options .= ' GPRINT:noiseFloor:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:noiseFloor:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:noiseFloor:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,22 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-250-ssr.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:ssr='.$rrdfilename.':ssr:AVERAGE ';
$rrd_options .= " LINE2:ssr#9B30FF:'Signal Strength Ratio ' ";
$rrd_options .= ' GPRINT:ssr:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,22 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-250-transmitPower.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:transmitPower='.$rrdfilename.':transmitPower:AVERAGE ';
$rrd_options .= " LINE2:transmitPower#FF0000:'Transmit Power ' ";
$rrd_options .= ' GPRINT:transmitPower:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitPower:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitPower:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,32 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-650-dataRate.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Mbps Now Ave Max \\n'";
$rrd_options .= ' DEF:receiveDataRate='.$rrdfilename.':receiveDataRate:AVERAGE ';
$rrd_options .= ' DEF:transmitDataRate='.$rrdfilename.':transmitDataRate:AVERAGE ';
$rrd_options .= ' DEF:aggregateDataRate='.$rrdfilename.':aggregateDataRate:AVERAGE ';
$rrd_options .= " LINE2:receiveDataRate#0000FF:'Receive Data Rate ' ";
$rrd_options .= ' GPRINT:receiveDataRate:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:receiveDataRate:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:receiveDataRate:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:transmitDataRate#FF0000:'Transmit Data Rate ' ";
$rrd_options .= ' GPRINT:transmitDataRate:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitDataRate:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitDataRate:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:aggregateDataRate#FFF000:'Aggregate Data Rate ' ";
$rrd_options .= ' GPRINT:aggregateDataRate:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:aggregateDataRate:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:aggregateDataRate:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,32 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-650-gps.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'\\n'";
$rrd_options .= ' DEF:gps='.$rrdfilename.':gps:AVERAGE ';
$rrd_options .= " LINE2:gps#9B30FF:'GPS Status' ";
$rrd_options .= ' GPRINT:gps:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:gps:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:gps:MAX:%0.2lf%s\\\l ';
$rrd_options .= " COMMENT:'0 = Locked\\n' ";
$rrd_options .= " COMMENT:'1 = Holdover\\n' ";
$rrd_options .= " COMMENT:'2 = holdoverNoGPSSyncIn\\n' ";
$rrd_options .= " COMMENT:'3 = notSynchronized\\n' ";
$rrd_options .= " COMMENT:'4 = notSynchronizedNoGPSSyncIn\\n' ";
$rrd_options .= " COMMENT:'5 = pTPSYNCNotConnected\\n' ";
$rrd_options .= " COMMENT:'6 = initialising\\n' ";
$rrd_options .= " COMMENT:'7 = clusterTimingMaster\\n' ";
$rrd_options .= " COMMENT:'8 = acquiringLock\\n' ";
$rrd_options .= " COMMENT:'9 = inactive\\n' ";
}
@@ -0,0 +1,27 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-650-modulationMode.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Mode Now Ave Max \\n'";
$rrd_options .= ' DEF:rxModulation='.$rrdfilename.':rxModulation:AVERAGE ';
$rrd_options .= ' DEF:txModulation='.$rrdfilename.':txModulation:AVERAGE ';
$rrd_options .= " LINE2:rxModulation#0000FF:'Receive Modulation ' ";
$rrd_options .= ' GPRINT:rxModulation:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:rxModulation:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:rxModulation:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:txModulation#FF0000:'Transmit Modulation ' ";
$rrd_options .= ' GPRINT:txModulation:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:txModulation:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:txModulation:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,22 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-650-rawReceivePower.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:rawReceivePower='.$rrdfilename.':rawReceivePower:AVERAGE ';
$rrd_options .= " LINE2:rawReceivePower#00FF00:'Receive Power ' ";
$rrd_options .= ' GPRINT:rawReceivePower:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:rawReceivePower:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:rawReceivePower:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,22 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-650-ssr.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:ssr='.$rrdfilename.':ssr:AVERAGE ';
$rrd_options .= " LINE2:ssr#9B30FF:'Signal Strength Ratio ' ";
$rrd_options .= ' GPRINT:ssr:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,22 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-650-transmitPower.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:transmitPower='.$rrdfilename.':transmitPower:AVERAGE ';
$rrd_options .= " LINE2:transmitPower#FF0000:'Transmit Power ' ";
$rrd_options .= ' GPRINT:transmitPower:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitPower:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:transmitPower:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-RFStatus.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:cambiumSTADLRSSI='.$rrdfilename.':cambiumSTADLRSSI:AVERAGE ';
$rrd_options .= ' DEF:cambiumSTADLSNR='.$rrdfilename.':cambiumSTADLSNR:AVERAGE ';
$rrd_options .= " AREA:cambiumSTADLRSSI#FF0000:'RSSI ' ";
$rrd_options .= ' GPRINT:cambiumSTADLRSSI:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:cambiumSTADLRSSI:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:cambiumSTADLRSSI:MAX:%0.2lf%s\\\l ';
$rrd_options .= " AREA:cambiumSTADLSNR#0000FF:'SNR ' ";
$rrd_options .= ' GPRINT:cambiumSTADLSNR:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:cambiumSTADLSNR:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:cambiumSTADLSNR:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,25 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-access.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Value Now \\n'";
$rrd_options .= ' DEF:entryAttempt='.$rrdfilename.':entryAttempt:AVERAGE ';
$rrd_options .= ' DEF:entryAccess='.$rrdfilename.':entryAccess:AVERAGE ';
$rrd_options .= ' DEF:authFailure='.$rrdfilename.':authFailure:AVERAGE ';
$rrd_options .= " LINE2:entryAttempt#FFF000:'Entry Attempts ' ";
$rrd_options .= ' GPRINT:entryAttempt:LAST:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:entryAccess#00FF00:'Entry Access ' ";
$rrd_options .= ' GPRINT:entryAccess:LAST:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:authFailure#FF0000:'Auth Failure ' ";
$rrd_options .= ' GPRINT:authFailure:LAST:%0.2lf%s\\\l ';
}
@@ -0,0 +1,18 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-freq.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Mhz \\n'";
$rrd_options .= ' DEF:freq='.$rrdfilename.':freq:AVERAGE ';
$rrd_options .= " LINE2:freq#008080:'Frequency ' ";
$rrd_options .= ' GPRINT:freq:LAST:%0.2lf%s ';
}
@@ -0,0 +1,25 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-gps.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:numTracked='.$rrdfilename.':numTracked:AVERAGE ';
$rrd_options .= ' DEF:numVisible='.$rrdfilename.':numVisible:AVERAGE ';
$rrd_options .= " LINE2:numTracked#FF0000:'GPS Number Tracked ' ";
$rrd_options .= ' GPRINT:numTracked:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:numTracked:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:numTracked:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:numVisible#FFFF00:'GPS Number Visible ' ";
$rrd_options .= ' GPRINT:numVisible:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:numVisible:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:numVisible:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,19 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-gpsSync.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'1 - GPS Sync Up 2 - GPS Sync Down 3 - CMM Sync \\n'";
$rrd_options .= ' DEF:gpsSync='.$rrdfilename.':gpsSync:AVERAGE ';
$rrd_options .= " LINE2:gpsSync#666699:'GPS Sync Status ' ";
$rrd_options .= ' GPRINT:gpsSync:LAST:%0.2lf%s ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-modulation.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Value Now Ave Max \\n'";
$rrd_options .= ' DEF:uplinkMCSMode='.$rrdfilename.':uplinkMCSMode:AVERAGE ';
$rrd_options .= ' DEF:downlinkMCSMode='.$rrdfilename.':downlinkMCSMode:AVERAGE ';
$rrd_options .= " LINE2:uplinkMCSMode#8F5E99:'Uplink ' ";
$rrd_options .= ' GPRINT:uplinkMCSMode:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:uplinkMCSMode:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:uplinkMCSMode:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:downlinkMCSMode#0000FF:'Downlink ' ";
$rrd_options .= ' GPRINT:downlinkMCSMode:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:downlinkMCSMode:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:downlinkMCSMode:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,21 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-epmp-registeredSM.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Value Now Ave Max \\n'";
$rrd_options .= ' DEF:regSM='.$rrdfilename.':regSM:AVERAGE ';
$rrd_options .= " LINE2:regSM#73b0c2:'Registered SM ' ";
$rrd_options .= ' GPRINT:regSM:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:regSM:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:regSM:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-linkRadioDbm.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:vertical='.$rrdfilename.':vertical:AVERAGE ';
$rrd_options .= ' DEF:horizontal='.$rrdfilename.':horizontal:AVERAGE ';
$rrd_options .= " LINE2:vertical#FF0000:'Vertical ' ";
$rrd_options .= ' GPRINT:vertical:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:horizontal#003EFF:'Horizontal ' ";
$rrd_options .= ' GPRINT:horizontal:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,21 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-masterSSR.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:ssr='.$rrdfilename.':ssr:AVERAGE ';
$rrd_options .= " LINE2:ssr#9B30FF:'Signal Strength Ratio ' ";
$rrd_options .= ' GPRINT:ssr:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,21 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-powerlevel.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:last='.$rrdfilename.':last:AVERAGE ';
$rrd_options .= " LINE2:last#003EFF:'Last ' ";
$rrd_options .= ' GPRINT:last:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:last:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:last:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-ptpSNR.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:vertical='.$rrdfilename.':vertical:AVERAGE ';
$rrd_options .= ' DEF:horizontal='.$rrdfilename.':horizontal:AVERAGE ';
$rrd_options .= " LINE2:vertical#FF0000:'Vertical ' ";
$rrd_options .= ' GPRINT:vertical:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:horizontal#00B2EE:'Horizontal ' ";
$rrd_options .= ' GPRINT:horizontal:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-slaveHV.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:vertical='.$rrdfilename.':vertical:AVERAGE ';
$rrd_options .= ' DEF:horizontal='.$rrdfilename.':horizontal:AVERAGE ';
$rrd_options .= " LINE2:vertical#FF0000:'Vertical ' ";
$rrd_options .= ' GPRINT:vertical:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:horizontal#003EFF:'Horizontal ' ";
$rrd_options .= ' GPRINT:horizontal:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-slaveSNR.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:vertical='.$rrdfilename.':vertical:AVERAGE ';
$rrd_options .= ' DEF:horizontal='.$rrdfilename.':horizontal:AVERAGE ';
$rrd_options .= " LINE2:vertical#FF0000:'Vertical ' ";
$rrd_options .= ' GPRINT:vertical:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:horizontal#00B2EE:'Horizontal ' ";
$rrd_options .= ' GPRINT:horizontal:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,21 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-450-slaveSSR.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:ssr='.$rrdfilename.':ssr:AVERAGE ';
$rrd_options .= " LINE2:ssr#9B30FF:'Signal Strength Ratio ' ";
$rrd_options .= ' GPRINT:ssr:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:ssr:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,22 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-crcErrors.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:crcErrors='.$rrdfilename.':crcErrors:AVERAGE ';
$rrd_options .= " LINE2:crcErrors#FF0000:'CRC Errors ' ";
$rrd_options .= ' GPRINT:crcErrors:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:crcErrors:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:crcErrors:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-errorCount.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:fecInErrorsCount='.$rrdfilename.':fecInErrorsCount:AVERAGE ';
$rrd_options .= ' DEF:fecOutErrorsCount='.$rrdfilename.':fecOutErrorsCount:AVERAGE ';
$rrd_options .= " LINE2:fecInErrorsCount#FF0000:'In Error Count ' ";
$rrd_options .= ' GPRINT:fecInErrorsCount:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:fecInErrorsCount:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:fecInErrorsCount:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:fecOutErrorsCount#00FF00:'Out Error Count ' ";
$rrd_options .= ' GPRINT:fecOutErrorsCount:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:fecOutErrorsCount:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:fecOutErrorsCount:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,18 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-freq.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Ghz Now \\n'";
$rrd_options .= ' DEF:freq='.$rrdfilename.':freq:AVERAGE ';
$rrd_options .= " LINE2:freq#FF0000:'Frequency ' ";
$rrd_options .= ' GPRINT:freq:LAST:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-gpsStats.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Amount Now Ave Max \\n'";
$rrd_options .= ' DEF:visible='.$rrdfilename.':visible:AVERAGE ';
$rrd_options .= ' DEF:tracked='.$rrdfilename.':tracked:AVERAGE ';
$rrd_options .= " LINE2:visible#0099ff:'Visible ' ";
$rrd_options .= ' GPRINT:visible:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:visible:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:visible:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:tracked#cc9900:'Tracked ' ";
$rrd_options .= ' GPRINT:tracked:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:tracked:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:tracked:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,21 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-jitter.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:' Now Ave Max \\n'";
$rrd_options .= ' DEF:jitter='.$rrdfilename.':jitter:AVERAGE ';
$rrd_options .= " AREA:jitter#3333cc:'Jitter ' ";
$rrd_options .= ' GPRINT:jitter:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:jitter:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:jitter:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,36 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-radioDbm.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:dbm='.$rrdfilename.':dbm:AVERAGE ';
$rrd_options .= ' DEF:min='.$rrdfilename.':min:AVERAGE ';
$rrd_options .= ' DEF:max='.$rrdfilename.':max:AVERAGE ';
$rrd_options .= ' DEF:avg='.$rrdfilename.':avg:AVERAGE ';
$rrd_options .= " LINE2:dbm#00E5EE:'Radio Dbm ' ";
$rrd_options .= ' GPRINT:dbm:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:dbm:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:dbm:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:min#00CD66:'Min ' ";
$rrd_options .= ' GPRINT:min:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:min:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:min:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:max#B272A6:'Max ' ";
$rrd_options .= ' GPRINT:max:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:max:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:max:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:avg#CC7F32:'Avg ' ";
$rrd_options .= ' GPRINT:avg:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:avg:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:avg:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-regCount.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:regCount='.$rrdfilename.':regCount:AVERAGE ';
$rrd_options .= ' DEF:failed='.$rrdfilename.':failed:AVERAGE ';
$rrd_options .= " AREA:regCount#FF0000:'Registered Sm ' ";
$rrd_options .= ' GPRINT:regCount:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:regCount:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:regCount:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:failed#000000:'Amount Failed ' ";
$rrd_options .= ' GPRINT:failed:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:failed:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:failed:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,21 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-rssi.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:rssi='.$rrdfilename.':rssi:AVERAGE ';
$rrd_options .= " AREA:rssi#FF0000:'RSSI ' ";
$rrd_options .= ' GPRINT:rssi:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:rssi:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:rssi:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,31 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-signalHV.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:vertical='.$rrdfilename.':vertical:AVERAGE ';
$rrd_options .= ' DEF:horizontal='.$rrdfilename.':horizontal:AVERAGE ';
$rrd_options .= ' DEF:combined='.$rrdfilename.':combined:AVERAGE ';
$rrd_options .= " LINE2:vertical#FF0000:'Vertical ' ";
$rrd_options .= ' GPRINT:vertical:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:horizontal#003EFF:'Horizontal ' ";
$rrd_options .= ' GPRINT:horizontal:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:combined#FFA500:'Combined ' ";
$rrd_options .= ' GPRINT:combined:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:combined:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:combined:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,26 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-snrHV.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dBm Now Ave Max \\n'";
$rrd_options .= ' DEF:vertical='.$rrdfilename.':vertical:AVERAGE ';
$rrd_options .= ' DEF:horizontal='.$rrdfilename.':horizontal:AVERAGE ';
$rrd_options .= " LINE2:vertical#FF0000:'Vertical ' ";
$rrd_options .= ' GPRINT:vertical:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:vertical:MAX:%0.2lf%s\\\l ';
$rrd_options .= " LINE2:horizontal#003EFF:'Horizontal ' ";
$rrd_options .= ' GPRINT:horizontal:LAST:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MIN:%0.2lf%s ';
$rrd_options .= ' GPRINT:horizontal:MAX:%0.2lf%s\\\l ';
}
@@ -0,0 +1,18 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
require 'includes/graphs/common.inc.php';
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/cambium-generic-whispGPSStats.rrd';
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'Value 1 = Synched 2 = Lost Sync 3 = Generating \\n'";
$rrd_options .= ' DEF:whispGPSStats='.$rrdfilename.':whispGPSStats:AVERAGE ';
$rrd_options .= " LINE2:whispGPSStats#00B8E6:'GPS Status ' ";
$rrd_options .= ' GPRINT:whispGPSStats:LAST:%0.2lf%s\\\l ';
}