Martin Zatloukal e473b03697 Add Huawei VRP sensors to yaml and fix bug in functions.inc.php (#7918)
* Add Huawei sensors to yaml and fix bug in functions.inc.php

* Add Huawei sensors to yaml and fix bug in functions.inc.php
2017-12-16 22:26:43 +00:00

63 lines
2.3 KiB
YAML

mib: HUAWEI-ENTITY-EXTENT-MIB
modules:
sensors:
pre-cache:
data:
- oid:
- entPhysicalName
temperature:
data:
-
oid: hwOpticalModuleInfoTable
value: hwEntityOpticalTemperature
num_oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.5.
descr: '{{ $entPhysicalName }}'
index: '{{ $index }}'
skip_value_lt: -50
-
oid: hwEntityStateTable
value: hwEntityTemperature
num_oid: .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.
descr: '{{ $entPhysicalName }}'
index: '{{ $index }}'
skip_values: 0
dbm:
data:
-
oid: hwOpticalModuleInfoTable
value: hwEntityOpticalRxPower
num_oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.8.
descr: '{{ $entPhysicalName }} Rx'
index: 'rx-{{ $index }}'
skip_values: -1
user_func: 'uw_to_dbm'
-
oid: hwOpticalModuleInfoTable
value: hwEntityOpticalTxPower
num_oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.9.
descr: '{{ $entPhysicalName }} Tx'
index: 'tx-{{ $index }}'
skip_values: -1
user_func: 'uw_to_dbm'
voltage:
data:
-
oid: hwOpticalModuleInfoTable
value: hwEntityOpticalVoltage
num_oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.6.
descr: '{{ $entPhysicalName }}'
index: '{{ $index }}'
skip_values: -1
divisor: 1000
current:
data:
-
oid: hwOpticalModuleInfoTable
value: hwEntityOpticalBiasCurrent
num_oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.7.
descr: '{{ $entPhysicalName }}'
index: '{{ $index }}'
skip_values: -1
divisor: 1000000