mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Add planet-pdu os device (#12441)
* Planet-PDU OS * fix sysdescr * fix sysdescr2 * fix sysdescr2
This commit is contained in:
parent
41f1436c15
commit
709d1b6f56
69
includes/definitions/discovery/planet-pdu.yaml
Executable file
69
includes/definitions/discovery/planet-pdu.yaml
Executable file
@ -0,0 +1,69 @@
|
||||
mib: DIGIPDU-MIB
|
||||
modules:
|
||||
os:
|
||||
sysDescr_regex: '/(?<hardware>\S+) (?<version>\S+)?/'
|
||||
sensors:
|
||||
voltage:
|
||||
data:
|
||||
-
|
||||
oid: inFeedVoltage
|
||||
value: inFeedVoltage
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.2.1.3.{{ $index }}'
|
||||
descr: "Voltage In"
|
||||
index: 3
|
||||
low_limit: 190
|
||||
high_limit: 260
|
||||
-
|
||||
oid: outVoltage
|
||||
value: outVoltage
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.3.1.6.{{ $index }}'
|
||||
index: 'outVoltage.{{ $index }}'
|
||||
descr: "Voltage Out {{ $index }}"
|
||||
current:
|
||||
data:
|
||||
-
|
||||
oid: inFeedCurrent
|
||||
value: inFeedCurrent
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.2.1.5.{{ $index }}'
|
||||
descr: "Current In"
|
||||
-
|
||||
oid: outCurrent
|
||||
value: outCurrent
|
||||
index: 'outCurrent.{{ $index }}'
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.3.1.7.{{ $index }}'
|
||||
descr: "Current Out {{ $index }}"
|
||||
power:
|
||||
data:
|
||||
-
|
||||
oid: inFeedPowerLoad
|
||||
value: inFeedPowerLoad
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.2.1.6.{{ $index }}'
|
||||
descr: "Power In"
|
||||
-
|
||||
oid: outPowerLoad
|
||||
value: outPowerLoad
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.3.1.9.{{ $index }}'
|
||||
index: 'outPowerLoad.{{ $index }}'
|
||||
descr: "Power Out {{ $index }}"
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: inbuiltTemperature
|
||||
value: inbuiltTemperature
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.5.1.3.{{ $index }}'
|
||||
divisor: 10
|
||||
descr: "Device Temperature"
|
||||
low_limit: inbuiltTemperatureLowWarning
|
||||
high_limit: inbuiltTemperatureHighWarning
|
||||
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: outSwitchStatus
|
||||
value: outSwitchStatus
|
||||
num_oid: '.1.3.6.1.4.1.10456.3.3.3.1.4.{{ $index }}'
|
||||
descr: "Switch status {{ $index }}"
|
||||
states:
|
||||
- { descr: Off, graph: 1, value: 0, generic: 0 }
|
||||
- { descr: On, graph: 1, value: 1, generic: 0 }
|
||||
|
16
includes/definitions/planet-pdu.yaml
Normal file
16
includes/definitions/planet-pdu.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
os: planet-pdu
|
||||
text: PLANET
|
||||
type: power
|
||||
icon: planet
|
||||
mib_dir: planet
|
||||
over:
|
||||
- { graph: device_current, text: Current }
|
||||
- { graph: device_voltage, text: Voltage }
|
||||
- { graph: device_power, text: Power }
|
||||
- { graph: device_state, text: State }
|
||||
- { graph: device_temperature, text: Temperature }
|
||||
|
||||
discovery:
|
||||
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.10456
|
3174
mibs/planet/DIGIPDU-MIB
Executable file
3174
mibs/planet/DIGIPDU-MIB
Executable file
File diff suppressed because it is too large
Load Diff
1365
tests/data/planet-pdu.json
Normal file
1365
tests/data/planet-pdu.json
Normal file
File diff suppressed because it is too large
Load Diff
87
tests/snmpsim/planet-pdu.snmprec
Normal file
87
tests/snmpsim/planet-pdu.snmprec
Normal file
@ -0,0 +1,87 @@
|
||||
1.3.6.1.2.1.1.1.0|4|IPM-8220 1.30.4
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.10456
|
||||
1.3.6.1.2.1.1.3.0|67|125273
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.2.1.2.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.1.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|lo
|
||||
1.3.6.1.2.1.2.2.1.2.2|4|eth0
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|24
|
||||
1.3.6.1.2.1.2.2.1.3.2|2|6
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|16436
|
||||
1.3.6.1.2.1.2.2.1.4.2|2|1500
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|10000000
|
||||
1.3.6.1.2.1.2.2.1.5.2|66|100000000
|
||||
1.3.6.1.2.1.2.2.1.6.1|4|
|
||||
1.3.6.1.2.1.2.2.1.6.2|4x|A8F7E0671F11
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.2|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.2|2|1
|
||||
1.3.6.1.2.1.2.2.1.9.1|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.2|67|0
|
||||
1.3.6.1.2.1.2.2.1.10.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.2|65|639168
|
||||
1.3.6.1.2.1.2.2.1.11.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.2|65|7975
|
||||
1.3.6.1.2.1.2.2.1.12.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.2|65|7
|
||||
1.3.6.1.2.1.2.2.1.15.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.2|65|623647
|
||||
1.3.6.1.2.1.2.2.1.17.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.2|65|1425
|
||||
1.3.6.1.2.1.2.2.1.18.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.2|65|2
|
||||
1.3.6.1.2.1.2.2.1.21.1|66|0
|
||||
1.3.6.1.2.1.2.2.1.21.2|66|0
|
||||
1.3.6.1.2.1.2.2.1.22.1|6|0.0
|
||||
1.3.6.1.2.1.2.2.1.22.2|6|0.0
|
||||
1.3.6.1.4.1.10456.3.2.1|2|0
|
||||
1.3.6.1.4.1.10456.3.3.2.1.3.1|2|231
|
||||
1.3.6.1.4.1.10456.3.3.2.1.5.1|2|0
|
||||
1.3.6.1.4.1.10456.3.3.2.1.6.1|2|6
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.1|2|1
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.2|2|1
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.3|2|1
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.4|2|1
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.5|2|1
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.6|2|1
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.7|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.4.8|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.1|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.2|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.3|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.4|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.5|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.6|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.7|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.6.8|2|231
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.1|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.2|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.3|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.4|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.5|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.6|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.7|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.7.8|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.1|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.2|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.3|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.4|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.5|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.6|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.7|2|0
|
||||
1.3.6.1.4.1.10456.3.3.3.1.9.8|2|0
|
||||
1.3.6.1.4.1.10456.3.3.5.1.3.1|2|444
|
Loading…
Reference in New Issue
Block a user