mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* add group to sensor initial discovery and use dynamic_discovery_get_value template syntax on them * spaces * switching to YamlDiscovery::replaceValues * testdata from ibmc * testdata from nxos * testdata from omnitron-iconverter * testdata from vrp * adapt discovery_schema to accept variables * remove pattern * Update discovery_schema.json
123 lines
4.9 KiB
YAML
123 lines
4.9 KiB
YAML
mib: HUAWEI-ENTITY-EXTENT-MIB
|
|
modules:
|
|
processors:
|
|
data:
|
|
-
|
|
oid: hwEntityStateEntry
|
|
value: hwEntityCpuUsage
|
|
num_oid: '.1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{{ $index }}'
|
|
descr: '{{ $entPhysicalName }} Processor'
|
|
skip_values:
|
|
-
|
|
oid: hwEntityOperStatus
|
|
op: '!='
|
|
value: 3
|
|
-
|
|
oid: hwEntityCpuUsageThreshold
|
|
op: '='
|
|
value: 0
|
|
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.{{ $index }}'
|
|
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.{{ $index }}'
|
|
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.{{ $index }}'
|
|
descr: '{{ $entPhysicalName }} Rx'
|
|
entPhysicalIndex: '{{ $index }}'
|
|
entPhysicalIndex_measured: ports
|
|
index: 'rx-{{ $index }}'
|
|
user_func: 'uw_to_dbm'
|
|
group: '{{ $entPhysicalName }}'
|
|
skip_values:
|
|
-
|
|
oid: hwEntityOpticalRxPower
|
|
op: '<='
|
|
value: 0
|
|
-
|
|
oid: hwOpticalModuleInfoTable
|
|
value: hwEntityOpticalTxPower
|
|
num_oid: '.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.9.{{ $index }}'
|
|
descr: '{{ $entPhysicalName }} Tx'
|
|
entPhysicalIndex: '{{ $index }}'
|
|
entPhysicalIndex_measured: ports
|
|
index: 'tx-{{ $index }}'
|
|
user_func: 'uw_to_dbm'
|
|
group: '{{ $entPhysicalName }}'
|
|
skip_values:
|
|
-
|
|
oid: hwEntityOpticalTxPower
|
|
op: '<='
|
|
value: 0
|
|
-
|
|
oid: hwOpticalModuleInfoTable
|
|
value: hwEntityOpticalLaneRxPower
|
|
num_oid: '.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.32.{{ $index }}'
|
|
descr: '{{ $entPhysicalName }} Rx'
|
|
entPhysicalIndex: '{{ $index }}'
|
|
entPhysicalIndex_measured: ports
|
|
index: 'lane-rx-{{ $index }}'
|
|
divisor: 100
|
|
group: '{{ $entPhysicalName }}'
|
|
skip_values:
|
|
-
|
|
oid: hwEntityOpticalRxPower
|
|
op: '>'
|
|
value: 0
|
|
-
|
|
oid: hwOpticalModuleInfoTable
|
|
value: hwEntityOpticalLaneTxPower
|
|
num_oid: '.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.33.{{ $index }}'
|
|
descr: '{{ $entPhysicalName }} Tx'
|
|
entPhysicalIndex: '{{ $index }}'
|
|
entPhysicalIndex_measured: ports
|
|
index: 'lane-tx-{{ $index }}'
|
|
group: '{{ $entPhysicalName }}'
|
|
skip_values:
|
|
-
|
|
oid: hwEntityOpticalTxPower
|
|
op: '>'
|
|
value: 0
|
|
divisor: 100
|
|
voltage:
|
|
data:
|
|
-
|
|
oid: hwOpticalModuleInfoTable
|
|
value: hwEntityOpticalVoltage
|
|
num_oid: '.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.6.{{ $index }}'
|
|
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.{{ $index }}'
|
|
descr: '{{ $entPhysicalName }}'
|
|
index: '{{ $index }}'
|
|
skip_values: -1
|
|
divisor: 1000000
|
|
|