Siklu RADIO-BRIGE-MIB provided by user

Added polling files

Added system volts and temp
This commit is contained in:
laf
2015-04-30 16:54:03 +01:00
parent 888cadb0e8
commit bf24e793b5
9 changed files with 3490 additions and 0 deletions
+35
View File
@@ -1366,6 +1366,41 @@ $config['graph_types']['device']['ubnt_airfiber_RFTotPktsRx'] = array(
)
);
// Siklu support
$config['graph_types']['device']['siklu_rfAverageRssi'] = array(
'section' => 'wireless',
'order' => '0',
'descr' => 'Radio Average RSSI',
'file' => 'siklu-mib.rrd',
'colours' => 'blues',
'unit_text' => 'dBm',
'ds' => array(
'WlStatRssi' => array('label' => 'RSSI', 'draw' => 'AREA', 'line' => TRUE)
)
);
$config['graph_types']['device']['siklu_rfAverageCinr'] = array(
'section' => 'wireless',
'order' => '1',
'descr' => 'Radio Average CINR',
'file' => 'siklu-mib.rrd',
'colours' => 'reds',
'unit_text' => 'dB',
'ds' => array(
'WlStatRssi' => array('label' => 'CINR', 'draw' => 'AREA', 'line' => TRUE)
)
);
$config['graph_types']['device']['siklu_rfModulationType'] = array(
'section' => 'wireless',
'order' => '2',
'descr' => 'RF Modulation',
'file' => 'siklu-mib.rrd',
'colours' => 'greens',
'unit_text' => '',
'ds' => array(
'WlStatRssi' => array('label' => 'RFM', 'draw' => 'AREA', 'line' => TRUE)
)
);
$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';
@@ -0,0 +1,17 @@
<?php
if ($device['os'] == "siklu") {
$oid = "rbSysTemperature.0";
$oids = snmp_get($device, "$oid", "-OsqnU", "RADIO-BRIDGE-MIB");
if ($debug) { echo($oids."\n"); }
if ($oids) echo("Siklu Temperature ");
$divisor = 1;
$type = "siklu";
if ($oids) {
list(,$current) = explode(' ',$oids);
$index = $oid;
$descr = "System Temp";
discover_sensor($valid['sensor'], 'voltage', $device, $oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current);
}
}
+16
View File
@@ -0,0 +1,16 @@
<?php
if ($device['os'] == "siklu") {
$oid = "rbSysVoltage.0";
$oids = snmp_walk($device, "$oid", "-OsqnU", "RADIO-BRIDGE-MIB");
if ($debug) { echo($oids."\n"); }
if ($oids) echo("Siklu Voltage ");
$divisor = 1;
$type = "siklu";
if ($oids) {
list(,$current) = explode(' ',$oids);
$index = $oid;
$descr = "System voltage";
discover_sensor($valid['sensor'], 'voltage', $device, $oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current);
}
}
+17
View File
@@ -0,0 +1,17 @@
<?php
echo(" Siklu Wireless ");
$mib_oids = array(
'rfAverageRssi' => array('1', 'rfAverageRssi', 'Signal Strength', 'GAUGE'),
'rfAverageCinr' => array('1', 'rfAverageCinr', 'Signal to noise ratio', 'GAUGE'),
'rfModulationType' => array('1', 'rfModulationType', 'Modulation Type', 'GAUGE'),
);
$mib_graphs = array();
array_push($mib_graphs, 'siklu_rfAverageRssi', 'siklu_rfAverageCinr', 'siklu_rfModulationType');
unset($graph, $oids, $oid);
poll_mib_def($device, 'RADIO-BRIDGE-MIB', 'siklu', $mib_oids, $mib_graphs, $sgraphs);
+7
View File
@@ -20,6 +20,13 @@ if ($device['type'] == 'network' || $device['type'] == 'firewall' || $device['ty
}
if ($device['os'] == 'siklu') {
echo("It is Siklu\n");
include "includes/polling/mib/ubnt-mib.inc.php";
}
///# GENERIC FRAMEWORK, FILLING VARIABLES
if ($device['os'] == 'airport')
{