Siklu RADIO-BRIGE-MIB provided by user

Added polling files

Added system volts and temp
This commit is contained in:
laf
2015-04-21 11:37:47 +01:00
parent 888cadb0e8
commit bf24e793b5
9 changed files with 3490 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
include("includes/graphs/common.inc.php");
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/siklu-mib.rrd";
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'db Now Min Max\\n'";
$rrd_options .= " DEF:rfAverageCinr=".$rrdfilename.":rfAverageCinr:AVERAGE ";
$rrd_options .= " LINE1:rfAverageCinr#CC0000:'CINR ' ";
$rrd_options .= " GPRINT:rfAverageCinr:LAST:%3.2lf ";
$rrd_options .= " GPRINT:rfAverageCinr:MIN:%3.2lf ";
$rrd_options .= " GPRINT:rfAverageCinr:MAX:%3.2lf\\\l ";
}

View File

@@ -0,0 +1,15 @@
<?php
include("includes/graphs/common.inc.php");
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/siklu-mib.rrd";
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:rfAverageRssi=".$rrdfilename.":rfAverageRssi:AVERAGE ";
$rrd_options .= " LINE1:rfAverageRssi#CC0000:'RSSI ' ";
$rrd_options .= " GPRINT:rfAverageRssi:LAST:%3.2lf ";
$rrd_options .= " GPRINT:rfAverageRssi:MIN:%3.2lf ";
$rrd_options .= " GPRINT:rfAverageRssi:MAX:%3.2lf\\\l ";
}

View File

@@ -0,0 +1,15 @@
<?php
include("includes/graphs/common.inc.php");
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/siklu-mib.rrd";
if (file_exists($rrdfilename)) {
$rrd_options .= " COMMENT:' Now Min Max\\n'";
$rrd_options .= " DEF:rfModulationType=".$rrdfilename.":rfModulationType:AVERAGE ";
$rrd_options .= " LINE1:rfModulationType#CC0000:'Modulation ' ";
$rrd_options .= " GPRINT:rfModulationType:LAST:%3.2lf ";
$rrd_options .= " GPRINT:rfModulationType:MIN:%3.2lf ";
$rrd_options .= " GPRINT:rfModulationType:MAX:%3.2lf\\\l ";
}

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';

View File

@@ -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);
}
}

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);
}
}

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);

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')
{

3353
mibs/RADIO-BRIDGE-MIB Normal file
View File

File diff suppressed because it is too large Load Diff