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:
djamp42
2019-03-04 17:08:11 -05:00
committed by Tony Murray
parent 80d0a23e8f
commit 8c5f86f32d
9 changed files with 3124 additions and 0 deletions

View 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

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

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