device: Added additional sensors for Geist Watchdog devices (#7795)

* device: Added additional sensors for Geist Watchdog devices

* added missing divisor

* added os unit test
This commit is contained in:
Neil Lathwood 2017-11-26 21:53:14 +00:00 committed by GitHub
parent 90dced7dc8
commit ae062f901b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 353 additions and 2 deletions

View File

@ -1,4 +1,4 @@
mib: GEIST-V4-MIB
mib: GEIST-V4-MIB:GEIST-MIB-V3
modules:
sensors:
temperature:
@ -35,6 +35,116 @@ modules:
value: thdSensorTemp
num_oid: .1.3.6.1.4.1.21239.5.1.9.1.5.
descr: thdSensorName
-
oid: thdSensorTable
value: thdSensorTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.32.1.5.
descr: thdSensorName
skip_values:
-
oid: thdSensorAvail
op: '!='
value: 1
-
oid: t3hdSensorTable
value: t3hdSensorIntTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.31.1.6.
descr: t3hdSensorName
skip_values:
-
oid: t3hdSensorAvail
op: '!='
value: 1
-
oid: climateRelayTable
value: climateRelayTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.26.1.5.
descr: climateRelayName
skip_values:
-
oid: climateRelayAvail
op: '!='
value: 1
-
oid: dewPointSensorTable
value: dewPointSensorTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.17.1.5.
descr: dewPointSensorName
skip_values:
-
oid: dewPointSensorAvail
op: '!='
value: 1
-
oid: vsfcTable
value: vsfcIntTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.13.1.8.
descr: vsfcName
skip_values:
-
oid: vsfcAvail
op: '!='
value: 1
-
oid: airFlowSensorTable
value: airFlowSensorTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.5.1.5.
descr: airFlowSensorName
skip_values:
-
oid: airFlowSensorAvail
op: '!='
value: 1
-
oid: tempSensorTable
value: tempSensorTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.4.1.5.
descr: tempSensorName
skip_values:
-
oid: tempSensorAvail
op: '!='
value: 1
-
oid: climateTable
value: climateTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.2.1.5.
descr: climateName
skip_values:
-
oid: climateAvail
op: '!='
value: 1
-
oid: dstsTable
value: dstsSourceATempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.19.1.13.
descr: dstsName
skip_values:
-
oid: dstsAvail
op: '!='
value: 1
-
oid: dstsTable
value: dstsSourceBTempC
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.19.1.14.
descr: dstsName
skip_values:
-
oid: dstsAvail
op: '!='
value: 1
current:
data:
-
@ -50,6 +160,167 @@ modules:
value: rpmSensorVoltage
num_oid: .1.3.6.1.4.1.21239.5.1.10.1.6.
descr: rpmSensorName
-
oid: pos60VdcSensorTable
value: pos60VdcSensorVoltage
num_oid: .1.3.6.1.4.1.21239.2.33.1.5.
descr: pos60VdcSensorName
skip_values:
-
oid: pos60VdcSensorAvail
op: '!='
value: 1
-
oid: ctrl3ChIECTable
value: ctrl3ChIECVoltsA
num_oid: .1.3.6.1.4.1.21239.2.25.1.6.
descr: ctrl3ChIECName
skip_values:
-
oid: ctrl3ChIECAvail
op: '!='
value: 1
-
oid: ctrl3ChIECTable
value: ctrl3ChIECVoltsB
num_oid: .1.3.6.1.4.1.21239.2.25.1.14.
descr: ctrl3ChIECName
skip_values:
-
oid: ctrl3ChIECAvail
op: '!='
value: 1
-
oid: ctrl3ChIECTable
value: ctrl3ChIECVoltsC
num_oid: .1.3.6.1.4.1.21239.2.25.1.22.
descr: ctrl3ChIECName
skip_values:
-
oid: ctrl3ChIECAvail
op: '!='
value: 1
-
oid: pos30VdcSensorTable
value: pos30VdcSensorVoltage
num_oid: .1.3.6.1.4.1.21239.2.23.1.5.
descr: pos30VdcSensorName
skip_values:
-
oid: pos30VdcSensorAvail
op: '!='
value: 1
-
oid: neg48VdcSensorTable
value: neg48VdcSensorVoltage
num_oid: .1.3.6.1.4.1.21239.2.22.1.5.
descr: neg48VdcSensorName
skip_values:
-
oid: neg48VdcSensorAvail
op: '!='
value: 1
-
oid: dstsTable
value: dstsVoltsA
num_oid: .1.3.6.1.4.1.21239.2.19.1.5.
descr: dstsName
skip_values:
-
oid: dstsAvail
op: '!='
value: 1
-
oid: dstsTable
value: dstsVoltsB
num_oid: .1.3.6.1.4.1.21239.2.19.1.7.
descr: dstsName
skip_values:
-
oid: dstsAvail
op: '!='
value: 1
-
oid: ctrl3ChTable
value: ctrl3ChVoltsA
num_oid: .1.3.6.1.4.1.21239.2.14.1.5.
descr: ctrl3ChName
skip_values:
-
oid: ctrl3ChAvail
op: '!='
value: 1
-
oid: ctrl3ChTable
value: ctrl3ChVoltsB
num_oid: .1.3.6.1.4.1.21239.2.14.1.12.
descr: ctrl3ChName
skip_values:
-
oid: ctrl3ChAvail
op: '!='
value: 1
-
oid: ctrl3ChTable
value: ctrl3ChVoltsC
num_oid: .1.3.6.1.4.1.21239.2.14.1.19.
descr: ctrl3ChName
skip_values:
-
oid: ctrl3ChAvail
op: '!='
value: 1
-
oid: pow3ChTable
value: pow3ChVoltsA
num_oid: .1.3.6.1.4.1.21239.2.11.1.6.
descr: pow3ChName
skip_values:
-
oid: pow3ChAvail
op: '!='
value: 1
-
oid: pow3ChTable
value: pow3ChVoltsB
num_oid: .1.3.6.1.4.1.21239.2.11.1.15.
descr: pow3ChName
skip_values:
-
oid: pow3ChAvail
op: '!='
value: 1
-
oid: pow3ChTable
value: pow3ChVoltsC
num_oid: .1.3.6.1.4.1.21239.2.11.1.24.
descr: pow3ChName
skip_values:
-
oid: pow3ChAvail
op: '!='
value: 1
-
oid: powMonTable
value: powMonVolts
num_oid: .1.3.6.1.4.1.21239.2.3.1.6.
descr: powMonName
skip_values:
-
oid: powMonAvail
op: '!='
value: 1
-
oid: climateTable
value: climateVolts
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.2.1.14.
descr: climateName
skip_values:
-
oid: climateAvail
op: '!='
value: 1
humidity:
data:
-
@ -67,6 +338,60 @@ modules:
value: internalHumidity
num_oid: .1.3.6.1.4.1.21239.5.1.2.1.6.
descr: internalName
-
oid: thdSensorTable
value: thdSensorHumidity
num_oid: .1.3.6.1.4.1.21239.2.32.1.7.
descr: thdSensorName
skip_values:
-
oid: thdSensorAvail
op: '!='
value: 1
-
oid: t3hdSensorTable
value: t3hdSensorIntHumidity
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.31.1.8.
descr: t3hdSensorName
skip_values:
-
oid: t3hdSensorAvail
op: '!='
value: 1
-
oid: dewPointSensorTable
value: dewPointSensorHumidity
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.17.1.7.
descr: dewPointSensorName
skip_values:
-
oid: dewPointSensorAvail
op: '!='
value: 1
-
oid: airFlowSensorTable
value: airFlowSensorHumidity
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.5.1.8.
descr: airFlowSensorName
skip_values:
-
oid: airFlowSensorAvail
op: '!='
value: 1
-
oid: climateTable
value: climateHumidity
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.2.1.7.
descr: climateName
skip_values:
-
oid: climateAvail
op: '!='
value: 1
airflow:
data:
-
@ -74,3 +399,27 @@ modules:
value: airFlowSensorFlow
num_oid: .1.3.6.1.4.1.21239.5.1.5.1.6.
descr: airFlowSensorName
-
oid: climateTable
value: climateAirflow
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.2.1.9.
descr: climateName
skip_values:
-
oid: climateAvail
op: '!='
value: 1
fanspeed:
data:
-
oid: vsfcTable
value: vsfcFanSpeed
divisor: 1
num_oid: .1.3.6.1.4.1.21239.2.13.1.7.
descr: vsfcName
skip_values:
-
oid: vsfcAvail
op: '!='
value: 1

View File

@ -23,5 +23,5 @@
* @author Neil Lathwood <gh+n@laf.io>
*/
$serial = snmp_get($device, 'climateSerial', '-Oqv', 'GEIST-MIB-V3');
$serial = snmp_get($device, 'climateSerial.1', '-Oqv', 'GEIST-MIB-V3');
$version = snmp_get($device, 'productVersion.0', '-Oqv', 'GEIST-MIB-V3');

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|RSMICRO
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.21239.2