mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add Device - Cisco Sat Receivers (#9899)
* Cisco Sat Receiver * Formatting Fixes * Code Climate Fixes * Add $entry field in the last array. * Formatting Fixes * Updated to correct S/N was grabbing wrong OID. * Update test data for missing serial # * Updated Serial # test data
This commit is contained in:
12
includes/definitions/ciscosat.yaml
Normal file
12
includes/definitions/ciscosat.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
os: ciscosat
|
||||
text: 'Cisco Satellite Receiver'
|
||||
type: network
|
||||
icon: cisco
|
||||
mib_dir:
|
||||
- cisco
|
||||
over:
|
||||
- { graph: device_bits, text: Traffic }
|
||||
- { graph: device_wireless_rssi, text: Sat Signal Level }
|
||||
discovery:
|
||||
-
|
||||
sysObjectID: .1.3.6.1.4.1.1429.2.2.6.5
|
30
includes/definitions/discovery/ciscosat.yaml
Normal file
30
includes/definitions/discovery/ciscosat.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
mib: CISCO-DMN-DSG-TUNING-MIB:CISCO-DMN-DSG-DIAG-MIB
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: inputStatusTable
|
||||
value: inputStatusSatLock
|
||||
num_oid: '.1.3.6.1.4.1.1429.2.2.5.5.3.2.1.3.{{ $index }}'
|
||||
descr: 'Sat Lock {{ $index }}'
|
||||
index: 'inputStatusSatLock.{{ $index }}'
|
||||
snmp_flags: '-OQUsbe'
|
||||
state_name: inputStatusSatLock
|
||||
states:
|
||||
- { value: -1, generic: 3, graph: 0, descr: 'null' }
|
||||
- { value: 1, generic: 2, graph: 1, descr: 'No Lock' }
|
||||
- { value: 2, generic: 1, graph: 1, descr: 'Lock - Signal' }
|
||||
- { value: 3, generic: 0, graph: 1, descr: 'Lock + Signal' }
|
||||
fanspeed:
|
||||
options:
|
||||
# Some Models such as D9854 do not report fanspeed, but respond to OID with 0.
|
||||
skip_values: 0
|
||||
data:
|
||||
-
|
||||
oid: diagFanRPMTable
|
||||
value: diagFanRPMValue
|
||||
num_oid: '.1.3.6.1.4.1.1429.2.2.5.18.2.2.1.3.{{ $index }}'
|
||||
descr: 'Fan Speed {{ $index }}'
|
||||
index: 'diagFanRPMValue.{{ $index }}'
|
||||
snmp_flags: '-OQUsbe'
|
5
includes/polling/os/ciscosat.inc.php
Normal file
5
includes/polling/os/ciscosat.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$ciscosat_data = snmp_get_multi_oid($device, ['.1.3.6.1.4.1.1429.2.2.5.1.1.1.0', '.1.3.6.1.4.1.1429.2.2.5.42.2.1.1.6.1', '.1.3.6.1.4.1.1429.2.2.5.1.1.4.0']);
|
||||
$version = $ciscosat_data['.1.3.6.1.4.1.1429.2.2.5.1.1.1.0'];
|
||||
$serial = $ciscosat_data['.1.3.6.1.4.1.1429.2.2.5.42.2.1.1.6.1'];
|
||||
$hardware = $ciscosat_data['.1.3.6.1.4.1.1429.2.2.5.1.1.4.0'];
|
Reference in New Issue
Block a user