mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add sub10RadioLclDataRate graph
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
// $scale_min = 0;
|
||||
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/sub10systems.rrd';
|
||||
|
||||
|
||||
if (file_exists($rrdfilename)) {
|
||||
$rrd_options .= " COMMENT:'dBm Now Min Max\\n'";
|
||||
$rrd_options .= ' DEF:sub10RadioLclDataRa='.$rrdfilename.':sub10RadioLclDataRa:AVERAGE ';
|
||||
$rrd_options .= " LINE1:sub10RadioLclDataRa#CC0000:'Tx Power ' ";
|
||||
$rrd_options .= ' GPRINT:sub10RadioLclDataRa:LAST:%3.2lf ';
|
||||
$rrd_options .= ' GPRINT:sub10RadioLclDataRa:MIN:%3.2lf ';
|
||||
$rrd_options .= ' GPRINT:sub10RadioLclDataRa:MAX:%3.2lf\\\l ';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1575,6 +1575,10 @@ $config['graph_types']['device']['sub10_sub10RadioLclAFER']['section'] = 'wirele
|
||||
$config['graph_types']['device']['sub10_sub10RadioLclAFER']['order'] = '4';
|
||||
$config['graph_types']['device']['sub10_sub10RadioLclAFER']['descr'] = 'Radio Air Frame Error Rate';
|
||||
|
||||
$config['graph_types']['device']['sub10_sub10RadioLclDataRate']['section'] = 'wireless';
|
||||
$config['graph_types']['device']['sub10_sub10RadioLclDataRate']['order'] = '4';
|
||||
$config['graph_types']['device']['sub10_sub10RadioLclDataRate']['descr'] = 'Data Rate on the Airside interface';
|
||||
|
||||
$config['graph_types']['device']['wifi_clients']['section'] = 'wireless';
|
||||
$config['graph_types']['device']['wifi_clients']['order'] = '0';
|
||||
$config['graph_types']['device']['wifi_clients']['descr'] = 'Wireless Clients';
|
||||
|
@@ -12,25 +12,31 @@ $mib_oids = array(
|
||||
'sub10RadioLclRxPower' => array(
|
||||
'0',
|
||||
'sub10RadioLclRxPower',
|
||||
'Transmit Power',
|
||||
'Receive Power',
|
||||
'GAUGE',
|
||||
),
|
||||
'sub10RadioLclVectErr' => array(
|
||||
'0',
|
||||
'sub10RadioLclVectErr',
|
||||
'Transmit Power',
|
||||
'Vector Error',
|
||||
'GAUGE',
|
||||
),
|
||||
'sub10RadioLclLnkLoss' => array(
|
||||
'0',
|
||||
'sub10RadioLclLnkLoss',
|
||||
'Transmit Power',
|
||||
'Link Loss',
|
||||
'GAUGE',
|
||||
),
|
||||
'sub10RadioLclAFER' => array(
|
||||
'0',
|
||||
'sub10RadioLclAFER',
|
||||
'Transmit Power',
|
||||
'Air Frame Error Rate',
|
||||
'GAUGE',
|
||||
),
|
||||
'sub10RadioLclDataRate' => array(
|
||||
'0',
|
||||
'sub10RadioLclDataRate',
|
||||
'Data Rate on Airside interface',
|
||||
'GAUGE',
|
||||
),
|
||||
);
|
||||
@@ -41,6 +47,7 @@ $mib_graphs = array(
|
||||
'sub10_sub10RadioLclVectErr',
|
||||
'sub10_sub10RadioLclLnkLoss',
|
||||
'sub10_sub10RadioLclAFER',
|
||||
'sub10RadioLclDataRate'
|
||||
);
|
||||
|
||||
unset($graph, $oids, $oid);
|
||||
|
Reference in New Issue
Block a user