device: Added CeraOS wireless sensors (#8167)

* CeraOS wireless sensors

* Add CeraOS test data, fix MSE

* fix whitespace
This commit is contained in:
Tony Murray
2018-02-18 15:31:18 -06:00
committed by Neil Lathwood
parent f8cceceeb6
commit 6887d771aa
19 changed files with 308 additions and 241 deletions

View File

@@ -611,7 +611,8 @@ class Sensor implements DiscoveryModule, PollerModule
$sensor['sensor_type'], $sensor['sensor_type'],
$sensor['sensor_index'] $sensor['sensor_index']
); );
$rrd_def = RrdDefinition::make()->addDataset('sensor', 'GAUGE'); $rrd_type = isset($types[$sensor['sensor_class']]['type']) ? strtoupper($types[$sensor['sensor_class']]['type']) : 'GAUGE';
$rrd_def = RrdDefinition::make()->addDataset('sensor', $rrd_type);
$fields = array( $fields = array(
'sensor' => isset($sensor_value) ? $sensor_value : 'U', 'sensor' => isset($sensor_value) ? $sensor_value : 'U',

View File

@@ -205,6 +205,13 @@ class WirelessSensor extends Sensor
'unit' => 'dBm/Hz', 'unit' => 'dBm/Hz',
'icon' => 'signal', 'icon' => 'signal',
), ),
'errors' => array(
'short' => 'Errors',
'long' => 'Errors',
'unit' => 'bps',
'icon' => 'exclamation-triangle',
'type' => 'counter',
),
'error-ratio' => array( 'error-ratio' => array(
'short' => 'Error Ratio', 'short' => 'Error Ratio',
'long' => 'Bit/Packet Error Ratio', 'long' => 'Bit/Packet Error Ratio',

View File

@@ -28,7 +28,7 @@ namespace LibreNMS\Interfaces\Discovery\Sensors;
interface WirelessErrorRateDiscovery interface WirelessErrorRateDiscovery
{ {
/** /**
* Discover wireless bit error rate. This is in bps. Type is error-ratio. * Discover wireless bit error rate. This is in bps. Type is error-rate.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered * Returns an array of LibreNMS\Device\Sensor objects that have been discovered
* *
* @return array Sensors * @return array Sensors

View File

@@ -0,0 +1,37 @@
<?php
/**
* WirelessErrorsDiscovery.php
*
* Discover bit error sensors in total bits
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2018 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
namespace LibreNMS\Interfaces\Discovery\Sensors;
interface WirelessErrorsDiscovery
{
/**
* Discover wireless bit errors. This is in total bits. Type is errors.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
*
* @return array Sensors
*/
public function discoverWirelessErrors();
}

View File

@@ -28,7 +28,7 @@ namespace LibreNMS\Interfaces\Discovery\Sensors;
interface WirelessMseDiscovery interface WirelessMseDiscovery
{ {
/** /**
* Discover wireless MSE. Mean square error value in dB. * Discover wireless MSE. Mean square error value in dB. Type is mse.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered * Returns an array of LibreNMS\Device\Sensor objects that have been discovered
* *
* @return array Sensors * @return array Sensors

View File

@@ -0,0 +1,38 @@
<?php
/**
* WirelessErrorsPolling.php
*
* Custom polling interface for wireless bit errors in total bits
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2018 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
namespace LibreNMS\Interfaces\Polling\Sensors;
interface WirelessErrorsPolling
{
/**
* Poll wireless bit errors as total bits
* The returned array should be sensor_id => value pairs
*
* @param array $sensors Array of sensors needed to be polled
* @return array of polled data
*/
public function pollWirelessErrors(array $sensors);
}

179
LibreNMS/OS/Ceraos.php Normal file
View File

@@ -0,0 +1,179 @@
<?php
/**
* Ceraos.php
*
* Ceragon CeraOS
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2018 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
namespace LibreNMS\OS;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessErrorsDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessMseDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessPowerDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRateDiscovery;
use LibreNMS\OS;
class Ceraos extends OS implements WirelessErrorsDiscovery, WirelessMseDiscovery, WirelessPowerDiscovery, WirelessRateDiscovery
{
/**
* Discover wireless rate. This is in bps. Type is rate.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
*
* @return array
*/
public function discoverWirelessRate()
{
$ifNames = $this->getCacheByIndex('ifName', 'IF-MIB');
$sensors = array();
$tx = snmpwalk_group($this->getDevice(), 'genEquipRadioMRMCCurrTxBitrate', 'MWRM-RADIO-MIB');
foreach ($tx as $index => $data) {
$sensors[] = new WirelessSensor(
'rate',
$this->getDeviceId(),
'.1.3.6.1.4.1.2281.10.7.4.1.1.7.' . $index,
'ceraos-tx',
$index,
$ifNames[$index] . " TX Bitrate",
$data['genEquipRadioMRMCCurrTxBitrate'],
1000
);
}
$rx = snmpwalk_group($this->getDevice(), 'genEquipRadioMRMCCurrRxBitrate', 'MWRM-RADIO-MIB');
foreach ($rx as $index => $data) {
$sensors[] = new WirelessSensor(
'rate',
$this->getDeviceId(),
'.1.3.6.1.4.1.2281.10.7.4.1.1.11.' . $index,
'ceraos-rx',
$index,
$ifNames[$index] . " RX Bitrate",
$data['genEquipRadioMRMCCurrRxBitrate'],
1000
);
}
return $sensors;
}
/**
* Discover wireless bit errors. This is in total bits. Type is errors.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
*
* @return array Sensors
*/
public function discoverWirelessErrors()
{
$ifNames = $this->getCacheByIndex('ifName', 'IF-MIB');
$sensors = array();
$mse = snmpwalk_group($this->getDevice(), 'genEquipRadioStatusDefectedBlocks', 'MWRM-RADIO-MIB');
foreach ($mse as $index => $data) {
$sensors[] = new WirelessSensor(
'errors',
$this->getDeviceId(),
'.1.3.6.1.4.1.2281.10.7.1.1.3.' . $index,
'ceraos',
$index,
$ifNames[$index] . " Defected Blocks",
$data['genEquipRadioStatusDefectedBlocks']
);
}
return $sensors;
}
/**
* Discover wireless MSE. Mean square error value in dB. Type is mse.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
*
* @return array Sensors
*/
public function discoverWirelessMse()
{
$ifNames = $this->getCacheByIndex('ifName', 'IF-MIB');
$sensors = array();
$divisor = 100;
$mse = snmpwalk_group($this->getDevice(), 'genEquipRadioStatusMSE', 'MWRM-RADIO-MIB');
foreach ($mse as $index => $data) {
$sensors[] = new WirelessSensor(
'mse',
$this->getDeviceId(),
'.1.3.6.1.4.1.2281.10.7.1.1.2.' . $index,
'ceraos',
$index,
$ifNames[$index],
$data['genEquipRadioStatusMSE'] / $divisor,
1,
$divisor
);
}
return $sensors;
}
/**
* Discover wireless tx or rx power. This is in dBm. Type is power.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
*
* @return array
*/
public function discoverWirelessPower()
{
$ifNames = $this->getCacheByIndex('ifName', 'IF-MIB');
$sensors = array();
$tx = snmpwalk_group($this->getDevice(), 'genEquipRfuStatusTxLevel', 'MWRM-RADIO-MIB');
foreach ($tx as $index => $data) {
$sensors[] = new WirelessSensor(
'power',
$this->getDeviceId(),
'.1.3.6.1.4.1.2281.10.5.1.1.3.' . $index,
'ceraos-tx',
$index,
$ifNames[$index] . " TX Level",
$data['genEquipRfuStatusTxLevel']
);
}
$rx = snmpwalk_group($this->getDevice(), 'genEquipRfuStatusRxLevel', 'MWRM-RADIO-MIB');
foreach ($rx as $index => $data) {
$sensors[] = new WirelessSensor(
'power',
$this->getDeviceId(),
'.1.3.6.1.4.1.2281.10.5.1.1.2.' . $index,
'ceraos-rx',
$index,
$ifNames[$index] . " RX Level",
$data['genEquipRfuStatusRxLevel']
);
}
return $sensors;
}
}

View File

@@ -1,17 +0,0 @@
<?php
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'DefectedBlocks='.$rrdfilename.':radio'.$i.'DefectedBlock:AVERAGE ';
$rrd_options .= ' LINE1:radio'.$i.'DefectedBlocks#'.$color[$i-1].':"Radio '.$i.' DefectedBlocks\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:radio'.$i.'DefectedBlocks:LAST:"%0.0lf " ';
$rrd_options .= ' GPRINT:radio'.$i.'DefectedBlocks:MIN:"%0.0lf " ';
$rrd_options .= ' GPRINT:radio'.$i.'DefectedBlocks:MAX:"%0.0lf \r" ';
}
}

View File

@@ -1,21 +0,0 @@
<?php
$scale_min = -30;
$scale_max = -25;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'MSE='.$rrdfilename.':radio'.$i.'MSE:AVERAGE ';
$rrd_options .= ' CDEF:divided'.$i.'MSE=radio'.$i.'MSE,100,/ ';
$rrd_options .= ' LINE1:divided'.$i.'MSE#'.$color[$i-1].':"Radio '.$i.' MSE\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:divided'.$i.'MSE:LAST:"%0.2lf dB" ';
$rrd_options .= ' GPRINT:divided'.$i.'MSE:MIN:"%0.2lf dB" ';
$rrd_options .= ' GPRINT:divided'.$i.'MSE:MAX:"%0.2lf dB\r" ';
}
}

View File

@@ -1,21 +0,0 @@
<?php
$scale_min = 100;
$scale_max = 250;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'RxBitrate='.$rrdfilename.':radio'.$i.'RxRate:AVERAGE ';
$rrd_options .= ' CDEF:radio'.$i.'RxBitrateMbps=radio'.$i.'RxBitrate,1000,/ ';
$rrd_options .= ' LINE1:radio'.$i.'RxBitrateMbps#'.$color[$i-1].':"Radio '.$i.' RxBitrate\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:radio'.$i.'RxBitrateMbps:LAST:"%0.2lf Mbps" ';
$rrd_options .= ' GPRINT:radio'.$i.'RxBitrateMbps:MIN:"%0.2lf Mbps" ';
$rrd_options .= ' GPRINT:radio'.$i.'RxBitrateMbps:MAX:"%0.2lf Mbps\r" ';
}
}

View File

@@ -1,20 +0,0 @@
<?php
$scale_min = -75;
$scale_max = -55;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'RxLevel='.$rrdfilename.':radio'.$i.'RxLevel:AVERAGE ';
$rrd_options .= ' LINE1:radio'.$i.'RxLevel#'.$color[$i-1].':"Radio '.$i.' RX Level\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:radio'.$i.'RxLevel:LAST:"%3.2lf dBm" ';
$rrd_options .= ' GPRINT:radio'.$i.'RxLevel:MIN:"%3.2lf dBm" ';
$rrd_options .= ' GPRINT:radio'.$i.'RxLevel:MAX:"%3.2lf dBm\r" ';
}
}

View File

@@ -1,21 +0,0 @@
<?php
$scale_min = 100;
$scale_max = 250;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'TxBitrate='.$rrdfilename.':radio'.$i.'TxRate:AVERAGE ';
$rrd_options .= ' CDEF:radio'.$i.'TxBitrateMbps=radio'.$i.'TxBitrate,1000,/ ';
$rrd_options .= ' LINE1:radio'.$i.'TxBitrateMbps#'.$color[$i-1].':"Radio '.$i.' TxBitrate\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:radio'.$i.'TxBitrateMbps:LAST:"%0.2lf Mbps" ';
$rrd_options .= ' GPRINT:radio'.$i.'TxBitrateMbps:MIN:"%0.2lf Mbps" ';
$rrd_options .= ' GPRINT:radio'.$i.'TxBitrateMbps:MAX:"%0.2lf Mbps\r" ';
}
}

View File

@@ -1,20 +0,0 @@
<?php
$scale_min = -10;
$scale_max = 20;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'TxPower='.$rrdfilename.':radio'.$i.'TxPower:AVERAGE ';
$rrd_options .= ' LINE1:radio'.$i.'TxPower#'.$color[$i-1].':"Radio '.$i.' RX Level\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:radio'.$i.'TxPower:LAST:"%3.2lf dBm" ';
$rrd_options .= ' GPRINT:radio'.$i.'TxPower:MIN:"%3.2lf dBm" ';
$rrd_options .= ' GPRINT:radio'.$i.'TxPower:MAX:"%3.2lf dBm\r" ';
}
}

View File

@@ -1,18 +0,0 @@
<?php
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'ceragon-radio');
if (rrdtool_check_rrd_exists($rrdfilename)) {
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$color = array("CC0000", "00CC00", "0000CC", "CCCCCC");
for ($i=1; $i <= $num_radios; $i++) {
$rrd_options .= ' DEF:radio'.$i.'XPI='.$rrdfilename.':radio'.$i.'XPI:AVERAGE ';
$rrd_options .= ' CDEF:divided'.$i.'XPI=radio'.$i.'XPI,100,/ ';
$rrd_options .= ' LINE1:divided'.$i.'XPI#'.$color[$i-1].':"Radio '.$i.' XPI\l" ';
$rrd_options .= ' COMMENT:\u ';
$rrd_options .= ' GPRINT:divided'.$i.'XPI:LAST:"%0.2lf dB" ';
$rrd_options .= ' GPRINT:divided'.$i.'XPI:MIN:"%0.2lf dB" ';
$rrd_options .= ' GPRINT:divided'.$i.'XPI:MAX:"%0.2lf dB\r" ';
}
}

View File

@@ -0,0 +1,9 @@
<?php
$scale_min = '0';
$class = 'errors';
$unit = 'bps';
$unit_long = 'Errors';
require 'includes/graphs/device/wireless-sensor.inc.php';

View File

@@ -0,0 +1,8 @@
<?php
$scale_min = '0';
$unit_long = 'Errors (bps)';
$unit = 'bps';
include 'wireless-sensor.inc.php';

View File

@@ -1,96 +0,0 @@
<?php
$features = explode(' ', $device[features]);
$num_radios = $features[0];
$mib_oids = array();
$radioNumber = 0;
$ifIndex = 0;
$ifIndex_array = array();
$ifIndex_array = explode("\n", snmp_walk($device, "ifIndex", "-Oqv", "IF-MIB"));
$snmp_get_oids = "";
foreach ($ifIndex_array as $ifIndex) {
$snmp_get_oids .= "ifDescr.$ifIndex ifName.$ifIndex ";
}
$ifDescr_array = array();
$ifDescr_array = snmp_get_multi($device, $snmp_get_oids, '-OQU', 'IF-MIB');
d_echo($ifDescr_array);
foreach ($ifIndex_array as $ifIndex) {
d_echo("\$ifDescr_array[$ifIndex]['IF-MIB::ifDescr'] = " . $ifDescr_array[$ifIndex]['IF-MIB::ifDescr'] . "\n");
$ifDescr = $ifDescr_array[$ifIndex]['IF-MIB::ifDescr'];
d_echo("\$ifDescr_array[$ifIndex]['IF-MIB::ifName'] = " . $ifDescr_array[$ifIndex]['IF-MIB::ifName'] . "\n");
$ifName = $ifDescr_array[$ifIndex]['IF-MIB::ifName'];
if (stristr($ifDescr, "Radio")) {
$radioNumber = $radioNumber+1;
$mib_oids["genEquipRfuStatusRxLevel.$ifIndex"] = array(
"",
"radio".$radioNumber."RxLevel",
$ifName." RX Level",
"GAUGE",
);
$mib_oids["genEquipRfuStatusTxLevel.$ifIndex"] = array(
"",
"radio".$radioNumber."TxPower",
$ifName." TX Power",
"GAUGE",
);
$mib_oids["genEquipRadioStatusMSE.$ifIndex"] = array(
"",
"radio".$radioNumber."MSE",
$ifName." MSE",
"GAUGE",
);
if ($num_radios > 1) {
$mib_oids["genEquipRadioStatusXPI.$ifIndex"] = array(
"",
"radio".$radioNumber."XPI",
$ifName." Cross Polarisation Interference",
"GAUGE",
);
}
$mib_oids["genEquipRadioStatusDefectedBlocks.$ifIndex"] = array(
"",
"radio".$radioNumber."DefectedBlocks",
$ifName." Defected Blocks",
"GAUGE",
);
$mib_oids["genEquipRadioMRMCCurrTxBitrate.$ifIndex"] = array(
"",
"radio".$radioNumber."TxRate",
$ifName." Tx Bit Rate",
"GAUGE",
);
$mib_oids["genEquipRadioMRMCCurrRxBitrate.$ifIndex"] = array(
"",
"radio".$radioNumber."RxRate",
$ifName." Rx Bit Rate",
"GAUGE",
);
}
}
if ($num_radios > 1) {
$mib_graphs = array(
"ceraos_RxLevel",
"ceraos_TxPower",
"ceraos_MSE",
"ceraos_XPI",
"ceraos_DefectedBlocks",
"ceraos_TxBitrate",
"ceraos_RxBitrate",
);
} else {
$mib_graphs = array(
"ceraos_RxLevel",
"ceraos_TxPower",
"ceraos_MSE",
"ceraos_DefectedBlocks",
"ceraos_TxBitrate",
"ceraos_RxBitrate",
);
}
poll_mib_def($device, "MWRM-RADIO-MIB:ceragon-radio", "ceraos", $mib_oids, $mib_graphs, $graphs);
unset($feature, $num_radios, $radioNumber, $ifIndex, $ifIndex_array, $ifName, $ifDescr, $mib_graphs, $mib_oids, $snmp_get_oids);

View File

@@ -5,9 +5,6 @@
if ($device['os'] == 'airos-af') { if ($device['os'] == 'airos-af') {
echo 'It Is AirFIBER' . PHP_EOL; echo 'It Is AirFIBER' . PHP_EOL;
include 'includes/polling/mib/ubnt-airfiber-mib.inc.php'; // packet stats include 'includes/polling/mib/ubnt-airfiber-mib.inc.php'; // packet stats
} elseif ($device['os'] == 'ceraos') {
echo 'It is Ceragon CeroOS' . PHP_EOL;
include 'includes/polling/mib/ceraos-mib.inc.php';
} elseif ($device['os'] == 'siklu') { } elseif ($device['os'] == 'siklu') {
echo 'It is Siklu' . PHP_EOL; echo 'It is Siklu' . PHP_EOL;
include 'includes/polling/mib/siklu-mib.inc.php'; include 'includes/polling/mib/siklu-mib.inc.php';

View File

@@ -1,6 +1,31 @@
1.3.6.1.2.1.1.1.0|4|High capacity packet radio outdoor unit 1.3.6.1.2.1.1.1.0|4|High capacity packet radio outdoor unit
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2281.1.20.2.2 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2281.1.20.2.2
1.3.6.1.2.1.1.3.0|67|1669123 1.3.6.1.2.1.1.3.0|2|1669123
1.3.6.1.2.1.1.4.0|4|<private> 1.3.6.1.2.1.1.4.0|4|<private>
1.3.6.1.2.1.1.5.0|4|<private> 1.3.6.1.2.1.1.5.0|4|<private>
1.3.6.1.2.1.1.6.0|4|<private> 1.3.6.1.2.1.1.6.0|4|<private>
1.3.6.1.2.1.31.1.1.1.1.268443713|4|Ethernet: Slot 1, port 1
1.3.6.1.2.1.31.1.1.1.1.268443714|4|Ethernet: Slot 1, port 2
1.3.6.1.2.1.31.1.1.1.1.268443715|4|Ethernet: Slot 1, port 3
1.3.6.1.2.1.31.1.1.1.1.268443716|4|Ethernet: Slot 1, port 4
1.3.6.1.2.1.31.1.1.1.1.268443717|4|Ethernet: Slot 1, port 5
1.3.6.1.2.1.31.1.1.1.1.268443718|4|Ethernet: Slot 1, port 6
1.3.6.1.2.1.31.1.1.1.1.268451905|4|Radio: Slot 1, port 1
1.3.6.1.2.1.31.1.1.1.1.268451906|4|Radio: Slot 1, port 2
1.3.6.1.2.1.31.1.1.1.1.268460097|4|Management: Slot 1, port 1
1.3.6.1.2.1.31.1.1.1.1.268460098|4|Management: Slot 1, port 2
1.3.6.1.2.1.31.1.1.1.1.268468289|4|Sync: Slot 1, port 1
1.3.6.1.2.1.31.1.1.1.1.268476481|4|TDM: Slot 1, port 1
1.3.6.1.2.1.31.1.1.1.1.268562561|4|Multi Carrier ABC: Group #1
1.3.6.1.4.1.2281.10.5.1.1.2.268451905|2|-67
1.3.6.1.4.1.2281.10.5.1.1.2.268451906|2|-99
1.3.6.1.4.1.2281.10.5.1.1.3.268451905|2|24
1.3.6.1.4.1.2281.10.5.1.1.3.268451906|2|24
1.3.6.1.4.1.2281.10.7.1.1.2.268451905|2|-6734
1.3.6.1.4.1.2281.10.7.1.1.2.268451906|2|-9900
1.3.6.1.4.1.2281.10.7.1.1.3.268451905|2|34
1.3.6.1.4.1.2281.10.7.1.1.3.268451906|2|0
1.3.6.1.4.1.2281.10.7.4.1.1.7.268451905|2|77
1.3.6.1.4.1.2281.10.7.4.1.1.7.268451906|2|86
1.3.6.1.4.1.2281.10.7.4.1.1.11.268451905|2|32
1.3.6.1.4.1.2281.10.7.4.1.1.11.268451906|2|43