Fix discovery and pooling Racom Ray2 (#13553)

* Fix discovery and pooling

* Added test data

* Removed author

* Fix

* Discovery transcribed into json

* Fix

* Fix2

* Fix3
This commit is contained in:
Martin22
2021-11-24 18:18:12 +01:00
committed by GitHub
parent e32685b54e
commit 382ef6219b
10 changed files with 1373 additions and 725 deletions

View File

@@ -18,16 +18,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2017 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
namespace LibreNMS\OS;
use LibreNMS\Device\Processor;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\ProcessorDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessPowerDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRateDiscovery;
@@ -36,33 +31,12 @@ use LibreNMS\Interfaces\Discovery\Sensors\WirelessSnrDiscovery;
use LibreNMS\OS;
class Ray extends OS implements
ProcessorDiscovery,
WirelessFrequencyDiscovery,
WirelessPowerDiscovery,
WirelessRssiDiscovery,
WirelessRateDiscovery,
WirelessSnrDiscovery
{
/**
* Discover processors.
* Returns an array of LibreNMS\Device\Processor objects that have been discovered
*
* @return array Processors
*/
public function discoverProcessors()
{
// RAY-MIB::useCpu has no index, so it won't work in yaml
return [
Processor::discover(
$this->getName(),
$this->getDeviceId(),
'.1.3.6.1.4.1.33555.1.1.5.1',
0
),
];
}
/**
* Discover wireless frequency. This is in GHz. Type is frequency.
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
@@ -73,9 +47,9 @@ class Ray extends OS implements
{
return [
// RAY-MIB::txFreq.0
new WirelessSensor('frequency', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.4', 'racom-tx', 1, 'TX Frequency', null, 1, 1000),
new WirelessSensor('frequency', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.4.0', 'racom-tx', 1, 'TX Frequency', null, 1, 1000),
// RAY-MIB::rxFreq.0
new WirelessSensor('frequency', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.3', 'racom-rx', 1, 'RX Frequency', null, 1, 1000),
new WirelessSensor('frequency', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.3.0', 'racom-rx', 1, 'RX Frequency', null, 1, 1000),
];
}
@@ -89,9 +63,9 @@ class Ray extends OS implements
{
return [
// RAY-MIB::rfPowerCurrent.0
new WirelessSensor('power', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.17', 'racom-pow-cur', 1, 'Tx Power Current'),
new WirelessSensor('power', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.17.0', 'racom-pow-cur', 1, 'Tx Power Current'),
//RAY-MIB::rfPowerConfigured.0
new WirelessSensor('power', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.12', 'racom-pow-conf', 1, 'Tx Power Configured'),
new WirelessSensor('power', $this->getDeviceId(), '.1.3.6.1.4.1.33555.1.2.1.12.0', 'racom-pow-conf', 1, 'Tx Power Configured'),
];
}
@@ -103,7 +77,7 @@ class Ray extends OS implements
*/
public function discoverWirelessRssi()
{
$oid = '.1.3.6.1.4.1.33555.1.3.2.1'; // RAY-MIB::rss.0
$oid = '.1.3.6.1.4.1.33555.1.3.2.1.0'; // RAY-MIB::rss.0
return [
new WirelessSensor('rssi', $this->getDeviceId(), $oid, 'racom', 1, 'RSSI', null, 1, 10),
@@ -118,7 +92,7 @@ class Ray extends OS implements
*/
public function discoverWirelessSnr()
{
$oid = '.1.3.6.1.4.1.33555.1.3.2.2'; // RAY-MIB::snr.0
$oid = '.1.3.6.1.4.1.33555.1.3.2.2.0'; // RAY-MIB::snr.0
return [
new WirelessSensor('snr', $this->getDeviceId(), $oid, 'racom', 1, 'CINR', null, 1, 10),
@@ -133,8 +107,8 @@ class Ray extends OS implements
*/
public function discoverWirelessRate()
{
$oid_bitrate = '.1.3.6.1.4.1.33555.1.2.1.13'; // RAY-MIB::netBitrate.0
$oid_maxbitrate = '.1.3.6.1.4.1.33555.1.2.1.14'; // RAY-MIB::maxNetBitrate.0
$oid_bitrate = '.1.3.6.1.4.1.33555.1.2.1.13.0'; // RAY-MIB::netBitrate.0
$oid_maxbitrate = '.1.3.6.1.4.1.33555.1.2.1.14.0'; // RAY-MIB::maxNetBitrate.0
return [
new WirelessSensor('rate', $this->getDeviceId(), $oid_bitrate, 'racom-netBitrate', 1, 'Net Bitrate', null, 1000, 1),

View File

@@ -1,6 +1,80 @@
mib: RAY-MIB
modules:
os:
features: RAY-MIB::unitType
hardware: RAY-MIB::productName
serial: RAY-MIB::serialNumber
version: RAY-MIB::swVer
features: RAY-MIB::unitType.0
hardware: RAY-MIB::productName.0
serial: RAY-MIB::serialNumber.0
version: RAY-MIB::swVer.0
mempools:
data:
-
percent_used: RAY-MIB::useMemory
processors:
data:
-
oid: useCpu
num_oid: '.1.3.6.1.4.1.33555.1.1.5.1.{{ $index }}'
sensors:
voltage:
data:
-
oid: voltageUnit
num_oid: '.1.3.6.1.4.1.33555.1.1.4.3.{{ $index }}'
descr: Voltage
divisor: 10
temperature:
data:
-
oid: temperatureRadio
num_oid: '.1.3.6.1.4.1.33555.1.1.4.2.{{ $index }}'
descr: Temperature
divisor: 100
state:
data:
-
oid: systemStatus
value: systemStatus
num_oid: '.1.3.6.1.4.1.33555.1.1.3.1.{{ $index }}'
descr: System Status
states:
- { value: 0, descr: Unknown, graph: 0, generic: 3 }
- { value: 1, descr: Ok, graph: 0, generic: 0 }
- { value: 2, descr: Warning, graph: 0, generic: 2 }
- { value: 3, descr: Alarm, graph: 0, generic: 3 }
-
oid: rfPowerStatus
value: rfPowerStatus
num_oid: '.1.3.6.1.4.1.33555.1.1.3.4.{{ $index }}'
descr: RF Power Status
states:
- { value: 0, descr: Unknown, graph: 0, generic: 3 }
- { value: 1, descr: Ok, graph: 0, generic: 0 }
- { value: 2, descr: Failure, graph: 0, generic: 3 }
-
oid: lineStatus
value: lineStatus
num_oid: '.1.3.6.1.4.1.33555.1.1.3.2.{{ $index }}'
descr: Radio Link Status
states:
- { value: 0, descr: Unknown, graph: 0, generic: 3 }
- { value: 1, descr: Ok, graph: 0, generic: 0 }
- { value: 2, descr: Analyzer, graph: 0, generic: 2 }
- { value: 3, descr: Connecting, graph: 0, generic: 2 }
- { value: 4, descr: Searching, graph: 0, generic: 3 }
-
oid: ethPeer
value: ethPeer
num_oid: '.1.3.6.1.4.1.33555.1.1.3.6.{{ $index }}'
descr: Peer Station Ethernet Status
states:
- { value: 0, descr: Unknown, graph: 0, generic: 3 }
- { value: 1, descr: Up, graph: 0, generic: 0 }
- { value: 2, descr: Down, graph: 0, generic: 3 }

View File

@@ -1,158 +0,0 @@
<?php
echo 'RAy Racom State';
// System Status (Value : na (0) unknown, ok (1) ok, warning (2) warning, alarm (3) alarm)
$state = snmp_get($device, 'systemStatus.0', '-Ovqe', 'RAY-MIB');
if ($state) {
//Create State Index
$state_name = 'systemStatus';
create_state_index(
$state_name,
[
['value' => 0, 'generic' => 3, 'graph' => 0, 'descr' => 'Unknown'],
['value' => 1, 'generic' => 0, 'graph' => 0, 'descr' => 'Ok'],
['value' => 2, 'generic' => 2, 'graph' => 0, 'descr' => 'Warning'],
['value' => 3, 'generic' => 3, 'graph' => 0, 'descr' => 'Alarm'],
]
);
$sensor_index = 0;
discover_sensor(
$valid['sensor'],
'state',
$device,
'.1.3.6.1.4.1.33555.1.1.3.1',
$sensor_index,
$state_name,
'System Status',
1,
1,
null,
null,
null,
null,
$state,
'snmp',
0
);
//Create Sensor To State Index
create_sensor_to_state_index($device, $state_name, $sensor_index);
}
// Line Status (Value : na (0) unknown, ok (1) ok, analyzer (2) analyzer, connecting (3) connecting, searching (4)). Supported by RAy10 only.
$state = snmp_get($device, 'lineStatus.0', '-Ovqe', 'RAY-MIB');
if ($state) {
//Create State Index
$state_name = 'lineStatus';
create_state_index(
$state_name,
[
['value' => 0, 'generic' => 3, 'graph' => 0, 'descr' => 'Unknown'],
['value' => 1, 'generic' => 0, 'graph' => 0, 'descr' => 'Ok'],
['value' => 2, 'generic' => 2, 'graph' => 0, 'descr' => 'Analyzer'],
['value' => 3, 'generic' => 2, 'graph' => 0, 'descr' => 'Connecting'],
['value' => 4, 'generic' => 3, 'graph' => 0, 'descr' => 'Searching'],
]
);
$sensor_index = 1;
discover_sensor(
$valid['sensor'],
'state',
$device,
'.1.3.6.1.4.1.33555.1.1.3.2',
$sensor_index,
$state_name,
'Radio Link Status',
1,
1,
null,
null,
null,
null,
$state,
'snmp',
0
);
//Create Sensor To State Index
create_sensor_to_state_index($device, $state_name, $sensor_index);
}
// RF Power Status (Value : na (0) unknown, ok (1) ok, fail (2) fail)
$state = snmp_get($device, 'rfPowerStatus.0', '-Ovqe', 'RAY-MIB');
if ($state) {
//Create State Index
$state_name = 'rfPowerStatus';
create_state_index(
$state_name,
[
['value' => 0, 'generic' => 3, 'graph' => 0, 'descr' => 'Unknown'],
['value' => 1, 'generic' => 0, 'graph' => 0, 'descr' => 'Ok'],
['value' => 2, 'generic' => 3, 'graph' => 0, 'descr' => 'Failure'],
]
);
$sensor_index = 2;
discover_sensor(
$valid['sensor'],
'state',
$device,
'.1.3.6.1.4.1.33555.1.1.3.4',
$sensor_index,
$state_name,
'RF Power Status',
1,
1,
null,
null,
null,
null,
$state,
'snmp',
0
);
//Create Sensor To State Index
create_sensor_to_state_index($device, $state_name, $sensor_index);
}
// Peer station user Ethernet link Status (Value : na (0) unknown, up (1) up, down (2) down) Not supported by RAy2.
$state = snmp_get($device, 'ethPeer.0', '-Ovqe', 'RAY-MIB');
if ($state) {
//Create State Index
$state_name = 'ethPeer';
create_state_index(
$state_name,
[
['value' => 0, 'generic' => 3, 'graph' => 0, 'descr' => 'Unknown'],
['value' => 1, 'generic' => 0, 'graph' => 0, 'descr' => 'Up'],
['value' => 2, 'generic' => 3, 'graph' => 0, 'descr' => 'Down'],
]
);
$sensor_index = 3;
discover_sensor(
$valid['sensor'],
'state',
$device,
'.1.3.6.1.4.1.33555.1.1.3.6',
$sensor_index,
$state_name,
'Peer Station Ethernet Status',
1,
1,
null,
null,
null,
null,
$state,
'snmp',
0
);
//Create Sensor To State Index
create_sensor_to_state_index($device, $state_name, $sensor_index);
}

View File

@@ -1,22 +0,0 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2017 Martin Zatloukal <slezi2@pvfree.net>
* 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.
*/
d_echo('RAY');
$oid = '.1.3.6.1.4.1.33555.1.1.4.2';
$index = 0;
$sensor_type = ' temperatureRadio';
$descr = 'Internal Temp';
$divisor = 100;
$temperature = (snmp_get($device, $oid, '-Oqv', 'RAY-MIB') / $divisor);
if (is_numeric($temperature)) {
discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, $sensor_type, $descr, $divisor, null, null, null, null, null, $temperature);
}

View File

@@ -1,22 +0,0 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2017 Martin Zatloukal <slezi2@pvfree.net>
* 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.
*/
d_echo('RAY');
$oid = '.1.3.6.1.4.1.33555.1.1.4.3';
$index = 0;
$sensor_type = 'voltageUnit';
$descr = 'Voltage';
$divisor = 10;
$voltage = (snmp_get($device, $oid, '-Oqv', 'RAY-MIB') / $divisor);
if (is_numeric($voltage)) {
discover_sensor($valid['sensor'], 'voltage', $device, $oid, $index, $sensor_type, $descr, $divisor, null, null, null, null, null, $voltage);
}

View File

@@ -1,401 +0,0 @@
{
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": 0,
"hrDeviceIndex": 0,
"processor_oid": ".1.3.6.1.4.1.33555.1.1.5.1",
"processor_index": "0",
"processor_type": "ray",
"processor_usage": 42,
"processor_descr": "Processor",
"processor_precision": 1,
"processor_perc_warn": 75
}
]
},
"poller": "matches discovery"
},
"os": {
"discovery": {
"devices": [
{
"sysName": "",
"sysObjectID": ".1.3.6.1.4.1.33555.1.1",
"sysDescr": "RAy - Microwave Link",
"sysContact": null,
"version": "4.1.51.0",
"hardware": "RAY10EU",
"features": "H1",
"os": "ray",
"type": "wireless",
"serial": "9879015",
"icon": "ray.png",
"location": null
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.33555.1.1.4.2",
"sensor_index": "0",
"sensor_type": " temperatureRadio",
"sensor_descr": "Internal Temp",
"group": null,
"sensor_divisor": 100,
"sensor_multiplier": 1,
"sensor_current": 22.75,
"sensor_limit": 42.75,
"sensor_limit_warn": null,
"sensor_limit_low": 12.75,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.33555.1.1.4.3",
"sensor_index": "0",
"sensor_type": "voltageUnit",
"sensor_descr": "Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50.3,
"sensor_limit": 57.845,
"sensor_limit_warn": null,
"sensor_limit_low": 42.755,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
}
],
"state_indexes": []
},
"poller": "matches discovery"
},
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "racom-netBitrate",
"sensor_descr": "Net Bitrate",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 170690000,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.13\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "2",
"sensor_type": "racom-maxNetBitrate",
"sensor_descr": "Max Net Bitrate",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 170690000,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.14\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "snr",
"sensor_index": "1",
"sensor_type": "racom",
"sensor_descr": "CINR",
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 29.5,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.3.2.2\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rssi",
"sensor_index": "1",
"sensor_type": "racom",
"sensor_descr": "RSSI",
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -60.9,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.3.2.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "racom-pow-conf",
"sensor_descr": "Tx Power Configured",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.12\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "racom-tx",
"sensor_descr": "TX Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10518,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.4\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "racom-rx",
"sensor_descr": "RX Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10168,
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.3\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "1",
"sensor_type": "racom-netBitrate",
"sensor_descr": "Net Bitrate",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 170690000,
"sensor_prev": 170690000,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.13\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rate",
"sensor_index": "2",
"sensor_type": "racom-maxNetBitrate",
"sensor_descr": "Max Net Bitrate",
"sensor_divisor": 1,
"sensor_multiplier": 1000,
"sensor_aggregator": "sum",
"sensor_current": 170690000,
"sensor_prev": 170690000,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.14\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "snr",
"sensor_index": "1",
"sensor_type": "racom",
"sensor_descr": "CINR",
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 29.5,
"sensor_prev": 29.5,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.3.2.2\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rssi",
"sensor_index": "1",
"sensor_type": "racom",
"sensor_descr": "RSSI",
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -60.9,
"sensor_prev": -60.9,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.3.2.1\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"sensor_index": "1",
"sensor_type": "racom-pow-conf",
"sensor_descr": "Tx Power Configured",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10,
"sensor_prev": 10,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.12\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "racom-tx",
"sensor_descr": "TX Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10518,
"sensor_prev": 10518,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.4\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"sensor_index": "1",
"sensor_type": "racom-rx",
"sensor_descr": "RX Frequency",
"sensor_divisor": 1000,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": 10168,
"sensor_prev": 10168,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.33555.1.2.1.3\"]"
}
]
}
}
}

1208
tests/data/ray_ray.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,82 +0,0 @@
1.3.6.1.2.1.1.1|4|RAy - Microwave link
1.3.6.1.2.1.1.1.0|4|RAy - Microwave Link
1.3.6.1.2.1.1.2|6|1.3.6.1.4.1.33555.1.1
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.33555.1.1
1.3.6.1.2.1.1.3|67|33525349
1.3.6.1.2.1.1.5|4|RAY10EU_H
1.3.6.1.2.1.1.6|4|
1.3.6.1.2.1.11.1.0|65|75133
1.3.6.1.2.1.11.2.0|65|75132
1.3.6.1.2.1.11.3.0|65|0
1.3.6.1.2.1.11.4.0|65|0
1.3.6.1.2.1.11.5.0|65|0
1.3.6.1.2.1.11.6.0|65|0
1.3.6.1.2.1.11.8.0|65|0
1.3.6.1.2.1.11.9.0|65|0
1.3.6.1.2.1.11.10.0|65|0
1.3.6.1.2.1.11.11.0|65|0
1.3.6.1.2.1.11.12.0|65|0
1.3.6.1.2.1.11.13.0|65|460662
1.3.6.1.2.1.11.14.0|65|0
1.3.6.1.2.1.11.15.0|65|39527
1.3.6.1.2.1.11.16.0|65|19
1.3.6.1.2.1.11.17.0|65|0
1.3.6.1.2.1.11.18.0|65|0
1.3.6.1.2.1.11.19.0|65|0
1.3.6.1.2.1.11.20.0|65|0
1.3.6.1.2.1.11.21.0|65|0
1.3.6.1.2.1.11.22.0|65|0
1.3.6.1.2.1.11.24.0|65|0
1.3.6.1.2.1.11.25.0|65|0
1.3.6.1.2.1.11.26.0|65|0
1.3.6.1.2.1.11.27.0|65|0
1.3.6.1.2.1.11.28.0|65|75134
1.3.6.1.2.1.11.29.0|65|0
1.3.6.1.2.1.11.30.0|2|2
1.3.6.1.2.1.11.31.0|65|0
1.3.6.1.2.1.11.32.0|65|0
1.3.6.1.2.1.16.1.1.1.1.1|2|1
1.3.6.1.2.1.25.1.1|67|33525373
1.3.6.1.2.1.31.1.1.1.1.1|4|data
1.3.6.1.2.1.31.1.1.1.1.2|4|service
1.3.6.1.2.1.31.1.1.1.1.3|4|modemE
1.3.6.1.2.1.31.1.1.1.2.1|65|243513
1.3.6.1.2.1.31.1.1.1.2.2|65|0
1.3.6.1.2.1.31.1.1.1.2.3|65|214820
1.3.6.1.2.1.31.1.1.1.3.1|65|975
1.3.6.1.2.1.31.1.1.1.3.2|65|0
1.3.6.1.2.1.31.1.1.1.3.3|65|65057
1.3.6.1.2.1.31.1.1.1.4.1|65|220405
1.3.6.1.2.1.31.1.1.1.4.2|65|0
1.3.6.1.2.1.31.1.1.1.4.3|65|206578
1.3.6.1.2.1.31.1.1.1.5.1|65|65059
1.3.6.1.2.1.31.1.1.1.5.2|65|0
1.3.6.1.2.1.31.1.1.1.5.3|65|1086
1.3.6.1.2.1.31.1.1.1.6.1|70|1151311673
1.3.6.1.2.1.31.1.1.1.6.2|70|0
1.3.6.1.2.1.31.1.1.1.6.3|70|280064777
1.3.6.1.2.1.31.1.1.1.10.1|70|218959546
1.3.6.1.2.1.31.1.1.1.10.2|70|0
1.3.6.1.2.1.31.1.1.1.10.3|70|1216124297
1.3.6.1.2.1.31.1.1.1.15.1|66|1000
1.3.6.1.2.1.31.1.1.1.15.2|66|0
1.3.6.1.2.1.31.1.1.1.15.3|66|1000
1.3.6.1.4.1.33555.1.1.1.1|4|RAY10EU
1.3.6.1.4.1.33555.1.1.1.2|66|9879015
1.3.6.1.4.1.33555.1.1.1.3|4|H1
1.3.6.1.4.1.33555.1.1.2.2|4|4.1.51.0
1.3.6.1.4.1.33555.1.1.3.1|2|1
1.3.6.1.4.1.33555.1.1.3.2|2|1
1.3.6.1.4.1.33555.1.1.3.4|2|1
1.3.6.1.4.1.33555.1.1.3.6|2|1
1.3.6.1.4.1.33555.1.1.4.1|2|4575
1.3.6.1.4.1.33555.1.1.4.2|2|2275
1.3.6.1.4.1.33555.1.1.4.3|2|503
1.3.6.1.4.1.33555.1.1.5.1|2|42
1.3.6.1.4.1.33555.1.2.1.3|66|10168000
1.3.6.1.4.1.33555.1.2.1.4|66|10518000
1.3.6.1.4.1.33555.1.2.1.12|2|10
1.3.6.1.4.1.33555.1.2.1.13|2|170690
1.3.6.1.4.1.33555.1.2.1.14|2|170690
1.3.6.1.4.1.33555.1.3.2.1|2|-609
1.3.6.1.4.1.33555.1.3.2.2|2|295

View File

@@ -1,2 +0,0 @@
1.3.6.1.2.1.1.1.0|4|Microwave Link
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.33555.1.1

View File

@@ -0,0 +1,79 @@
1.3.6.1.2.1.1.1.0|4|Microwave Link
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.33555.1.1
1.3.6.1.2.1.1.6.0|4|<private>
1.3.6.1.2.1.2.2.1.1.1|2|1
1.3.6.1.2.1.2.2.1.1.2|2|2
1.3.6.1.2.1.2.2.1.1.3|2|3
1.3.6.1.2.1.2.2.1.2.1|4|p2_data_e1
1.3.6.1.2.1.2.2.1.2.2|4|p4_data_e2
1.3.6.1.2.1.2.2.1.2.3|4|p6_air
1.3.6.1.2.1.2.2.1.3.1|2|6
1.3.6.1.2.1.2.2.1.3.2|2|6
1.3.6.1.2.1.2.2.1.3.3|2|6
1.3.6.1.2.1.2.2.1.4.1|2|10240
1.3.6.1.2.1.2.2.1.4.2|2|10240
1.3.6.1.2.1.2.2.1.4.3|2|10240
1.3.6.1.2.1.2.2.1.5.1|66|1000000000
1.3.6.1.2.1.2.2.1.5.2|66|0
1.3.6.1.2.1.2.2.1.5.3|66|1000000000
1.3.6.1.2.1.2.2.1.7.1|2|1
1.3.6.1.2.1.2.2.1.7.2|2|1
1.3.6.1.2.1.2.2.1.7.3|2|1
1.3.6.1.2.1.2.2.1.8.1|2|1
1.3.6.1.2.1.2.2.1.8.2|2|2
1.3.6.1.2.1.2.2.1.8.3|2|1
1.3.6.1.2.1.2.2.1.11.1|65|3457352666
1.3.6.1.2.1.2.2.1.11.2|65|0
1.3.6.1.2.1.2.2.1.11.3|65|3600150342
1.3.6.1.2.1.2.2.1.12.1|65|37703128
1.3.6.1.2.1.2.2.1.12.2|65|0
1.3.6.1.2.1.2.2.1.12.3|65|19162251
1.3.6.1.2.1.2.2.1.14.1|65|0
1.3.6.1.2.1.2.2.1.14.2|65|0
1.3.6.1.2.1.2.2.1.14.3|65|0
1.3.6.1.2.1.2.2.1.17.1|65|3554765930
1.3.6.1.2.1.2.2.1.17.2|65|0
1.3.6.1.2.1.2.2.1.17.3|65|1919570101
1.3.6.1.2.1.2.2.1.18.1|65|19162408
1.3.6.1.2.1.2.2.1.18.2|65|0
1.3.6.1.2.1.2.2.1.18.3|65|37661675
1.3.6.1.2.1.2.2.1.20.1|65|0
1.3.6.1.2.1.2.2.1.20.2|65|0
1.3.6.1.2.1.2.2.1.20.3|65|0
1.3.6.1.2.1.16.1.1.1.1.1|2|1
1.3.6.1.2.1.31.1.1.1.1.1|4|p2_data_e1
1.3.6.1.2.1.31.1.1.1.1.2|4|p4_data_e2
1.3.6.1.2.1.31.1.1.1.1.3|4|p6_air
1.3.6.1.2.1.31.1.1.1.2.1|65|37260765
1.3.6.1.2.1.31.1.1.1.2.2|65|0
1.3.6.1.2.1.31.1.1.1.2.3|65|18276224
1.3.6.1.2.1.31.1.1.1.3.1|65|442327
1.3.6.1.2.1.31.1.1.1.3.2|65|0
1.3.6.1.2.1.31.1.1.1.3.3|65|886013
1.3.6.1.2.1.31.1.1.1.4.1|65|18276248
1.3.6.1.2.1.31.1.1.1.4.2|65|0
1.3.6.1.2.1.31.1.1.1.4.3|65|37219970
1.3.6.1.2.1.31.1.1.1.5.1|65|886149
1.3.6.1.2.1.31.1.1.1.5.2|65|0
1.3.6.1.2.1.31.1.1.1.5.3|65|441668
1.3.6.1.2.1.31.1.1.1.15.1|66|1000
1.3.6.1.2.1.31.1.1.1.15.2|66|0
1.3.6.1.2.1.31.1.1.1.15.3|66|1000
1.3.6.1.4.1.33555.1.1.1.1.0|4|RAy2-17
1.3.6.1.4.1.33555.1.1.1.2.0|66|9617522
1.3.6.1.4.1.33555.1.1.1.3.0|4|L
1.3.6.1.4.1.33555.1.1.2.2.0|4|2.2.5.0
1.3.6.1.4.1.33555.1.1.3.1.0|2|1
1.3.6.1.4.1.33555.1.1.3.4.0|2|1
1.3.6.1.4.1.33555.1.1.4.2.0|2|1125
1.3.6.1.4.1.33555.1.1.4.3.0|2|532
1.3.6.1.4.1.33555.1.1.5.1.0|2|51
1.3.6.1.4.1.33555.1.1.5.2.0|2|38
1.3.6.1.4.1.33555.1.2.1.3.0|66|17213500
1.3.6.1.4.1.33555.1.2.1.4.0|66|17129500
1.3.6.1.4.1.33555.1.2.1.12.0|2|5
1.3.6.1.4.1.33555.1.2.1.13.0|2|337670
1.3.6.1.4.1.33555.1.2.1.14.0|2|359
1.3.6.1.4.1.33555.1.2.1.17.0|2|-4
1.3.6.1.4.1.33555.1.3.2.1.0|2|-586
1.3.6.1.4.1.33555.1.3.2.2.0|2|297