mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added snmp mibs from vendor (https://www.hillstonenet.com) * Added memoery discovery and pool * Added serial and os version discovery. * Added cpu discovery. * Added temperature and power sensors * Added test data. * Fix yaml format. * Pass mib name as parameter. * Pass mib name as parameter. * Use numeric OID * User snmp_get_multi_oid * Use snmp_get_multi_oid * Remove default extension from vendor. * Update test data. * Renamed some mibs + changed oid in disco proc * Updated json test data * Update processor discovery to yaml
33 lines
1.4 KiB
YAML
33 lines
1.4 KiB
YAML
mib: 'HILLSTONE-FAN-MIB'
|
|
modules:
|
|
processors:
|
|
data:
|
|
-
|
|
oid: HILLSTONE-SYSTEM-MIB::sysCPU
|
|
value: sysCPU
|
|
num_oid: '.1.3.6.1.4.1.28557.2.2.1.3.{{ $index }}'
|
|
sensors:
|
|
temperature:
|
|
data:
|
|
-
|
|
oid: HILLSTONE-TEMPERATURE-MIB::HillstoneTemperatureEntry
|
|
value: hillstoneTemperatureValue
|
|
num_oid: .1.3.6.1.4.1.28557.2.28.1.2.1.3.
|
|
descr: '{{ $hillstoneTemperatureDescr }}'
|
|
state:
|
|
data:
|
|
-
|
|
oid: HILLSTONE-POWER-MIB::HillstonePowerEntry
|
|
value: hillstonePowerState
|
|
num_oid: .1.3.6.1.4.1.28557.2.27.1.2.1.3.
|
|
descr: '{{ $hillstonePowerDescr }}'
|
|
index: 'hillstonePowerIndex.{{ $index }}'
|
|
state_name: hillstonePowerState
|
|
states:
|
|
- { descr: fine, graph: 0, value: 0, generic: 0 }
|
|
- { descr: absent, graph: 0, value: 1, generic: 1 }
|
|
- { descr: warning, graph: 0, value: 2, generic: 1 }
|
|
- { descr: fail, graph: 0, value: 3, generic: 2 }
|
|
- { descr: fail or nopower, graph: 0, value: 4, generic: 2 }
|
|
- { descr: unsupport, graph: 0, value: 5, generic: 3 }
|