diff --git a/LibreNMS/OS/ArrisDsr4410md.php b/LibreNMS/OS/ArrisDsr4410md.php new file mode 100755 index 0000000000..9e6cc56c59 --- /dev/null +++ b/LibreNMS/OS/ArrisDsr4410md.php @@ -0,0 +1,60 @@ +getDeviceId(), + $oid, + 'arris-dsr4410md', + 0, + 'Receive Signal Level', + null, + null, + 10 + ) + ); + } + public function discoverWirelessSnr() + { + $oid = '.1.3.6.1.4.1.1166.1.621.16.6.8.0'; + return array( + new WirelessSensor( + 'snr', + $this->getDeviceId(), + $oid, + 'arris-dsr4410md', + 0, + 'Receive SNR', + null, + null, + 10 + ) + ); + } + public function discoverWirelessQuality() + { + $oid = '.1.3.6.1.4.1.1166.1.621.11.8.0'; + return array( + new WirelessSensor( + 'quality', + $this->getDeviceId(), + $oid, + 'arris-dsr4410md', + 0, + 'Receive Quality' + ) + ); + } +} diff --git a/includes/definitions/arris-dsr4410md.yaml b/includes/definitions/arris-dsr4410md.yaml new file mode 100644 index 0000000000..ef51a0c46b --- /dev/null +++ b/includes/definitions/arris-dsr4410md.yaml @@ -0,0 +1,34 @@ +os: arris-dsr4410md +text: 'Arris Satellite Receiver' +type: network +icon: arris +mib_dir: + - arris +over: + - { graph: device_wireless_rssi, text: Sat Signal Level } + - { graph: device_wireless_quality, text: Sat Signal Quality } +discovery: + - + snmpget: + oid: .1.3.6.1.4.1.1166.1.621.14.2.0 + op: 'contains' + value: DSR +discovery_modules: + ports: false + mempools: false + processors: false + fdb-table: false + stp: false + ntp: false + bgp-peers: false + arp-table: false + vlans: false + ucd-diskio: false + cisco-vrf-lite: false + entity-physical: false + ports-stack: false + ipv6-addresses: false + services: false + discovery-protocols: false + hr-device: false + storage: false diff --git a/includes/definitions/discovery/arris-dsr4410md.yaml b/includes/definitions/discovery/arris-dsr4410md.yaml new file mode 100644 index 0000000000..52c3754896 --- /dev/null +++ b/includes/definitions/discovery/arris-dsr4410md.yaml @@ -0,0 +1,15 @@ +mib: DSR4410MD-MIB +modules: + sensors: + state: + data: + - + oid: signalStatus + value: acquisitionState + num_oid: '.1.3.6.1.4.1.1166.1.621.11.1.0' + descr: 'Acquisition State' + state_name: acquisitionState + states: + - { value: -1, generic: 3, graph: 0, descr: 'null' } + - { value: 1, generic: 2, graph: 1, descr: 'Un-Locked' } + - { value: 0, generic: 0, graph: 1, descr: 'Locked' } diff --git a/includes/polling/os/arris-dsr4410md.inc.php b/includes/polling/os/arris-dsr4410md.inc.php new file mode 100644 index 0000000000..d6be109004 --- /dev/null +++ b/includes/polling/os/arris-dsr4410md.inc.php @@ -0,0 +1,5 @@ +", + "icon": "arris.svg", + "location": null + } + ] + } + }, + "sensors": { + "discovery": { + "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.1166.1.621.11.1.0", + "sensor_index": "0", + "sensor_type": "acquisitionState", + "sensor_descr": "Acquisition State", + "group": "", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "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_prev": null, + "user_func": null, + "state_name": "acquisitionState" + } + ], + "state_indexes": [ + { + "state_name": "acquisitionState", + "state_descr": "null", + "state_draw_graph": 0, + "state_value": -1, + "state_generic_value": 3 + }, + { + "state_name": "acquisitionState", + "state_descr": "Locked", + "state_draw_graph": 1, + "state_value": 0, + "state_generic_value": 0 + }, + { + "state_name": "acquisitionState", + "state_descr": "Un-Locked", + "state_draw_graph": 1, + "state_value": 1, + "state_generic_value": 2 + } + ] + }, + "poller": "matches discovery" + }, + "wireless": { + "discovery": { + "wireless_sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "quality", + "sensor_index": "0", + "sensor_type": "arris-dsr4410md", + "sensor_descr": "Receive Quality", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_aggregator": "sum", + "sensor_current": 88, + "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.1166.1.621.11.8.0\"]" + }, + { + "sensor_deleted": 0, + "sensor_class": "snr", + "sensor_index": "0", + "sensor_type": "arris-dsr4410md", + "sensor_descr": "Receive SNR", + "sensor_divisor": 10, + "sensor_multiplier": 0, + "sensor_aggregator": "sum", + "sensor_current": 18.2, + "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.1166.1.621.16.6.8.0\"]" + }, + { + "sensor_deleted": 0, + "sensor_class": "rssi", + "sensor_index": "0", + "sensor_type": "arris-dsr4410md", + "sensor_descr": "Receive Signal Level", + "sensor_divisor": 10, + "sensor_multiplier": 0, + "sensor_aggregator": "sum", + "sensor_current": -47.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.1166.1.621.11.9.0\"]" + } + ] + }, + "poller": { + "wireless_sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "quality", + "sensor_index": "0", + "sensor_type": "arris-dsr4410md", + "sensor_descr": "Receive Quality", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_aggregator": "sum", + "sensor_current": 88, + "sensor_prev": 88, + "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.1166.1.621.11.8.0\"]" + }, + { + "sensor_deleted": 0, + "sensor_class": "snr", + "sensor_index": "0", + "sensor_type": "arris-dsr4410md", + "sensor_descr": "Receive SNR", + "sensor_divisor": 10, + "sensor_multiplier": 0, + "sensor_aggregator": "sum", + "sensor_current": 18.2, + "sensor_prev": 18.2, + "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.1166.1.621.16.6.8.0\"]" + }, + { + "sensor_deleted": 0, + "sensor_class": "rssi", + "sensor_index": "0", + "sensor_type": "arris-dsr4410md", + "sensor_descr": "Receive Signal Level", + "sensor_divisor": 10, + "sensor_multiplier": 0, + "sensor_aggregator": "sum", + "sensor_current": -47.5, + "sensor_prev": -47.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.1166.1.621.11.9.0\"]" + } + ] + } + } +} diff --git a/tests/snmpsim/arris-dsr4410md.snmprec b/tests/snmpsim/arris-dsr4410md.snmprec new file mode 100644 index 0000000000..db05d39721 --- /dev/null +++ b/tests/snmpsim/arris-dsr4410md.snmprec @@ -0,0 +1,21 @@ +1.3.6.1.4.1.1166.1.621.9.1.1.0|4| +1.3.6.1.4.1.1166.1.621.9.2.3.0|4|000292 +1.3.6.1.4.1.1166.1.621.11.1.0|2|0 +1.3.6.1.4.1.1166.1.621.11.2.0|2|1 +1.3.6.1.4.1.1166.1.621.11.3.0|2|4 +1.3.6.1.4.1.1166.1.621.11.4.0|4| +1.3.6.1.4.1.1166.1.621.11.5.0|2|0 +1.3.6.1.4.1.1166.1.621.11.6.0|2|0 +1.3.6.1.4.1.1166.1.621.11.7.0|2|0 +1.3.6.1.4.1.1166.1.621.11.8.0|2|88 +1.3.6.1.4.1.1166.1.621.11.9.0|2|-475 +1.3.6.1.4.1.1166.1.621.11.10.0|2|150 +1.3.6.1.4.1.1166.1.621.11.11.0|2|8 +1.3.6.1.4.1.1166.1.621.11.12.0|2|10 +1.3.6.1.4.1.1166.1.621.11.13.0|2|1290000 +1.3.6.1.4.1.1166.1.621.11.14.0|4| +1.3.6.1.4.1.1166.1.621.11.15.0|2|0 +1.3.6.1.4.1.1166.1.621.11.16.0|2|0 +1.3.6.1.4.1.1166.1.621.11.17.0|2|2 +1.3.6.1.4.1.1166.1.621.14.2.0|4|DSR-4410MD +1.3.6.1.4.1.1166.1.621.16.6.8.0|2|182