Files
librenms-librenms/includes/definitions/discovery/comware.yaml
wuwei 385ef98ff7 Parse info from H3C branded comware devices (#12551)
* Update comware.yaml

Fix the problem that the H3C switch cannot obtain the device hardware model

* better regex, remove ENTITY-MIB::entPhysicalName it is rubbish.

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-14 10:11:51 -05:00

45 lines
2.0 KiB
YAML

mib: HH3C-LswDEVM-MIB:HH3C-ENTITY-EXT-MIB
modules:
os:
sysDescr_regex: '/Version (?<version>[0-9.]+).*(Release|ESS) (?<features>[R0-9P]+).*[\n ](HPE |HPE FF |HP |H3C )(?<hardware>.*)[\r ][\n ]/'
sensors:
pre-cache:
data:
-
oid:
- entPhysicalName
state:
data:
-
oid: hh3cdevMFanStatusTable
value: hh3cDevMFanStatus
num_oid: '.1.3.6.1.4.1.25506.8.35.9.1.1.1.2.{{ $index }}'
descr: 'Fan {{ $index }}'
index: '{{ $index }}'
states:
- { value: 1, descr: active, graph: 1, generic: 0 }
- { value: 2, descr: deactive, graph: 1, generic: 2 }
- { value: 3, descr: not-install, graph: 1, generic: 3 }
- { value: 4, descr: unsupport, graph: 1, generic: 1 }
-
oid: hh3cdevMPowerStatusTable
value: hh3cDevMPowerStatus
num_oid: '.1.3.6.1.4.1.25506.8.35.9.1.2.1.2.{{ $index }}'
descr: 'Power Supply {{ $index }}'
index: '{{ $index }}'
states:
- { value: 1, descr: active, graph: 1, generic: 0 }
- { value: 2, descr: deactive, graph: 1, generic: 2 }
- { value: 3, descr: not-install, graph: 1, generic: 3 }
- { value: 4, descr: unsupport, graph: 1, generic: 1 }
power:
data:
-
oid: hh3cEntityExtPowerEntry
value: hh3cEntityExtCurrentPower
num_oid: '.1.3.6.1.4.1.25506.2.6.1.3.1.1.3.{{ $index }}'
descr: '{{ $entPhysicalName }} Power Usage'
index: 'hh3cEntityExtCurrentPower.{{ $index }}'
divisor: 1000
skip_values: 0