Merge pull request #3279 from pheinrichs/issue-3277

Added Cambium Support
This commit is contained in:
Neil Lathwood
2016-03-29 11:46:29 +01:00
101 changed files with 36728 additions and 11 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

+12
View File
@@ -1371,6 +1371,18 @@ function load_graph_definitions($logarithmic = false, $tinylegend = false) {
'GPRINT:temp_avg:AVERAGE:%4.1lf',
'GPRINT:temp_max:MAX:%4.1lf',
'GPRINT:temp_avg:LAST:%4.1lf\l');
$GraphDefs['signal'] = array(
'DEF:signal_avg={file}:value:AVERAGE',
'DEF:signal_min={file}:value:MIN',
'DEF:signal_max={file}:value:MAX',
'CDEF:average=signal_avg,0.2,*,PREV,UN,signal_avg,PREV,IF,0.8,*,+',
"AREA:signal_max#$HalfRed",
"AREA:signal_min#$Canvas",
"LINE1:signal_avg#$FullRed:Signal",
'GPRINT:signal_min:MIN:%4.1lf',
'GPRINT:signal_avg:AVERAGE:%4.1lf',
'GPRINT:signal_max:MAX:%4.1lf',
'GPRINT:signal_avg:LAST:%4.1lf\l');
$GraphDefs['timeleft'] = array(
#'-v', 'Minutes',
'DEF:avg={file}:timeleft:AVERAGE',
@@ -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 ';
}
@@ -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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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'].'/canopy-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 ';
}
@@ -0,0 +1,7 @@
<?php
$class = 'signal';
$unit = 'dBm';
$unit_long = '';
require 'includes/graphs/device/sensor.inc.php';
@@ -0,0 +1,22 @@
<?php
$scale_min = '-100';
$scale_max = '0';
require 'includes/graphs/common.inc.php';
$rrd_options .= " COMMENT:' Min Last Max\\n'";
$sensor['sensor_descr_fixed'] = substr(str_pad($sensor['sensor_descr'], 18), 0, 18);
$rrd_options .= " DEF:sensor=$rrd_filename:sensor:AVERAGE";
$rrd_options .= " LINE1.5:sensor#cc0000:'".$sensor['sensor_descr_fixed']."'";
$rrd_options .= " GPRINT:sensor$current_id:MIN:%5.2lfdBm";
$rrd_options .= ' GPRINT:sensor:LAST:%5.2lfdBm';
$rrd_options .= ' GPRINT:sensor:MAX:%5.2lfdBm\\\\l';
if (is_numeric($sensor['sensor_limit'])) {
$rrd_options .= ' HRULE:'.$sensor['sensor_limit'].'#999999::dashes';
}
if (is_numeric($sensor['sensor_limit_low'])) {
$rrd_options .= ' HRULE:'.$sensor['sensor_limit_low'].'#999999::dashes';
}
+2 -2
View File
@@ -359,8 +359,8 @@ if ($menu_sensors) {
echo(' <li role="presentation" class="divider"></li>');
}
$icons = array('fanspeed'=>'tachometer','humidity'=>'tint','temperature'=>'fire','current'=>'bolt','frequency'=>'line-chart','power'=>'power-off','voltage'=>'bolt','charge'=>'plus-square','dbm'=>'sun-o', 'load'=>'spinner','state'=>'bullseye');
foreach (array('fanspeed','humidity','temperature') as $item) {
$icons = array('fanspeed'=>'tachometer','humidity'=>'tint','temperature'=>'fire','current'=>'bolt','frequency'=>'line-chart','power'=>'power-off','voltage'=>'bolt','charge'=>'plus-square','dbm'=>'sun-o', 'load'=>'spinner','state'=>'bullseye','signal'=>'wifi');
foreach (array('fanspeed','humidity','temperature','signal') as $item) {
if (isset($menu_sensors[$item])) {
echo(' <li><a href="health/metric='.$item.'/"><i class="fa fa-'.$icons[$item].' fa-fw fa-lg"></i> '.nicecase($item).'</a></li>');
unset($menu_sensors[$item]);$sep++;
+6
View File
@@ -16,6 +16,7 @@ $power = dbFetchCell("select count(*) from sensors WHERE sensor_class='po
$dBm = dbFetchCell("select count(*) from sensors WHERE sensor_class='dBm' AND device_id = ?", array($device['device_id']));
$states = dbFetchCell("select count(*) from sensors WHERE sensor_class='state' AND device_id = ?", array($device['device_id']));
$load = dbFetchCell("select count(*) from sensors WHERE sensor_class='load' AND device_id = ?", array($device['device_id']));
$signal = dbFetchCell("select count(*) from sensors WHERE sensor_class='signal' AND device_id = ?", array($device['device_id']));
unset($datas);
$datas[] = 'overview';
@@ -79,6 +80,10 @@ if ($load) {
$datas[] = 'load';
}
if ($signal) {
$datas[] = 'signal';
}
$type_text['overview'] = 'Overview';
$type_text['charge'] = 'Battery Charge';
$type_text['temperature'] = 'Temperature';
@@ -95,6 +100,7 @@ $type_text['power'] = 'Power';
$type_text['dbm'] = 'dBm';
$type_text['state'] = 'State';
$type_text['load'] = 'Load';
$type_text['signal'] = 'Signal';
$link_array = array(
'page' => 'device',
+7
View File
@@ -0,0 +1,7 @@
<?php
$class = 'signal';
$unit = 'dBm';
$graph_type = 'sensor_signal';
require 'sensors.inc.php';
+1
View File
@@ -64,6 +64,7 @@ require 'overview/sensors/power.inc.php';
require 'overview/sensors/frequencies.inc.php';
require 'overview/sensors/load.inc.php';
require 'overview/sensors/state.inc.php';
require 'overview/sensors/signal.inc.php';
require 'overview/eventlog.inc.php';
require 'overview/services.inc.php';
require 'overview/syslog.inc.php';
@@ -0,0 +1,8 @@
<?php
$graph_type = 'sensor_signal';
$sensor_class = 'signal';
$sensor_unit = 'dBm';
$sensor_type = 'Wireless';
require 'pages/device/overview/generic/sensor.inc.php';
+2
View File
@@ -12,6 +12,7 @@ if ($used_sensors['power']) $datas[] = 'power';
if ($used_sensors['dbm']) $datas[] = 'dbm';
if ($used_sensors['load']) $datas[] = 'load';
if ($used_sensors['state']) $datas[] = 'state';
if ($used_sensors['signal']) $datas[] = 'signal';
// FIXME generalize -> static-config ?
$type_text['overview'] = "Overview";
@@ -31,6 +32,7 @@ $type_text['toner'] = "Toner";
$type_text['dbm'] = "dBm";
$type_text['load'] = "Load";
$type_text['state'] = "State";
$type_text['signal'] = "Signal";
if (!$vars['metric']) {
$vars['metric'] = "processor";
+7
View File
@@ -0,0 +1,7 @@
<?php
$graph_type = 'sensor_signal';
$class = 'signal';
$unit = 'dBm';
require 'pages/health/sensors.inc.php';