Added support for HP PDU Management Module (#10784)

This commit is contained in:
Jellyfrog 2019-11-12 13:36:01 +01:00 committed by PipoCanaja
parent a31aef6313
commit 2feb28440a
6 changed files with 10154 additions and 5874 deletions

View File

@ -0,0 +1,59 @@
mib: CPQPOWER-MIB
modules:
sensors:
current:
data:
-
oid: pduOutputBreakerTable
value: breakerCurrent
num_oid: '.1.3.6.1.4.1.232.165.2.3.2.1.3.{{ $index }}'
index: 'breakerCurrent.{{ $index }}'
descr: 'PDU {{ $subindex0 }} Phase {{ $subindex1 }}'
skip_values: -1
load:
data:
-
oid: pduOutputBreakerTable
value: breakerPercentLoad
num_oid: '.1.3.6.1.4.1.232.165.2.3.2.1.4.{{ $index }}'
index: 'breakerPercentLoad.{{ $index }}'
descr: 'PDU {{ $subindex0 }} Phase {{ $subindex1 }}'
skip_values: -1
-
oid: pduOutputTable
value: pduOutputLoad
num_oid: '.1.3.6.1.4.1.232.165.2.3.1.1.2.{{ $index }}'
index: 'pduOutputLoad.{{ $index }}'
descr: 'PDU {{ $index }}'
skip_values: -1
voltage:
data:
-
oid: pduOutputBreakerTable
value: breakerVoltage
num_oid: '.1.3.6.1.4.1.232.165.2.3.2.1.2.{{ $index }}'
index: 'breakerVoltage.{{ $index }}'
descr: 'PDU {{ $subindex0 }} Phase {{ $subindex1 }}'
skip_values: -1
power:
data:
-
oid: pduOutputTable
value: pduOutputPower
num_oid: '.1.3.6.1.4.1.232.165.2.3.1.1.4.{{ $index }}'
index: 'pduOutputPower.{{ $index }}'
descr: 'PDU {{ $index }}'
skip_values: -1
state:
data:
-
oid: pduIdentTable
value: pduStatus
num_oid: '.1.3.6.1.4.1.232.165.2.1.2.1.8.{{ $index }}'
descr: 'PDU {{ $index }}'
states:
- { value: 1, generic: 3, descr: other, graph: 0 }
- { value: 2, generic: 0, descr: ok, graph: 0 }
- { value: 3, generic: 1, descr: degraded, graph: 0 }
- { value: 4, generic: 2, descr: failed, graph: 0 }

View File

@ -0,0 +1,12 @@
os: hpe-pdumm
text: 'HP PDU Management Module'
type: power
icon: hpe
over:
- {graph: device_load, text: Load}
- {graph: device_current, text: Current}
mib_dir:
- hp
discovery:
- sysDescr:
- 'HP PDU Management Module'

View File

@ -0,0 +1,11 @@
<?php
/*
* LibreNMS
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
list(,$version) = explode('firmware version ', $device['sysDescr']);

File diff suppressed because it is too large Load Diff

1515
tests/data/hpe-pdumm.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,228 @@
1.3.6.1.2.1.1.1.0|4|HP PDU Management Module, revision 1.00.A, firmware version 1.00.16
1.3.6.1.2.1.1.3.0|67|291928910
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|1
1.3.6.1.2.1.2.2.1.3.2|2|7
1.3.6.1.2.1.2.2.1.4.1|2|1500
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|0
1.3.6.1.2.1.2.2.1.5.2|66|100000000
1.3.6.1.2.1.2.2.1.6.1|4x|00
1.3.6.1.2.1.2.2.1.6.2|4x|28924A34D97F
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|954244879
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|3746772
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|3574116
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|2501354
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|1
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|655737823
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|3746406
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|10269
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|0
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.2.1.4.3.0|65|3679652
1.3.6.1.2.1.4.4.0|65|0
1.3.6.1.2.1.4.5.0|65|0
1.3.6.1.2.1.4.6.0|65|0
1.3.6.1.2.1.4.7.0|65|0
1.3.6.1.2.1.4.8.0|65|0
1.3.6.1.2.1.4.9.0|65|3679651
1.3.6.1.2.1.4.10.0|65|3649979
1.3.6.1.2.1.4.11.0|65|0
1.3.6.1.2.1.4.12.0|65|0
1.3.6.1.2.1.4.14.0|65|0
1.3.6.1.2.1.4.15.0|65|0
1.3.6.1.2.1.4.16.0|65|0
1.3.6.1.2.1.4.17.0|65|0
1.3.6.1.2.1.4.18.0|65|0
1.3.6.1.2.1.4.19.0|65|0
1.3.6.1.2.1.4.20.1.2.10.10.101.239|2|2
1.3.6.1.2.1.4.20.1.2.127.0.0.1|2|1
1.3.6.1.2.1.4.20.1.3.10.10.101.239|64|255.255.255.0
1.3.6.1.2.1.4.20.1.3.127.0.0.1|64|255.0.0.0
1.3.6.1.2.1.5.1.0|65|288218
1.3.6.1.2.1.5.2.0|65|0
1.3.6.1.2.1.5.3.0|65|5
1.3.6.1.2.1.5.4.0|65|0
1.3.6.1.2.1.5.5.0|65|0
1.3.6.1.2.1.5.6.0|65|0
1.3.6.1.2.1.5.7.0|65|0
1.3.6.1.2.1.5.8.0|65|288213
1.3.6.1.2.1.5.9.0|65|0
1.3.6.1.2.1.5.10.0|65|0
1.3.6.1.2.1.5.11.0|65|0
1.3.6.1.2.1.5.12.0|65|0
1.3.6.1.2.1.5.13.0|65|0
1.3.6.1.2.1.5.14.0|65|288213
1.3.6.1.2.1.5.15.0|65|0
1.3.6.1.2.1.5.16.0|65|0
1.3.6.1.2.1.5.17.0|65|0
1.3.6.1.2.1.5.18.0|65|0
1.3.6.1.2.1.5.19.0|65|0
1.3.6.1.2.1.5.20.0|65|0
1.3.6.1.2.1.5.21.0|65|0
1.3.6.1.2.1.5.22.0|65|288213
1.3.6.1.2.1.5.23.0|65|0
1.3.6.1.2.1.5.24.0|65|0
1.3.6.1.2.1.5.25.0|65|0
1.3.6.1.2.1.5.26.0|65|0
1.3.6.1.2.1.6.5.0|65|0
1.3.6.1.2.1.6.6.0|65|15
1.3.6.1.2.1.6.7.0|65|0
1.3.6.1.2.1.6.8.0|65|0
1.3.6.1.2.1.6.9.0|66|4
1.3.6.1.2.1.6.10.0|65|138
1.3.6.1.2.1.6.11.0|65|125
1.3.6.1.2.1.6.12.0|65|0
1.3.6.1.2.1.6.14.0|65|0
1.3.6.1.2.1.6.15.0|65|2
1.3.6.1.2.1.7.1.0|65|3391327
1.3.6.1.2.1.7.2.0|65|29643
1.3.6.1.2.1.7.3.0|65|0
1.3.6.1.2.1.7.4.0|65|3361672
1.3.6.1.2.1.11.1.0|65|3361335
1.3.6.1.2.1.11.2.0|65|3361319
1.3.6.1.2.1.11.3.0|65|6
1.3.6.1.2.1.11.4.0|65|9
1.3.6.1.2.1.11.5.0|65|9
1.3.6.1.2.1.11.6.0|65|0
1.3.6.1.2.1.11.8.0|65|0
1.3.6.1.2.1.11.9.0|65|0
1.3.6.1.2.1.11.10.0|65|0
1.3.6.1.2.1.11.11.0|65|0
1.3.6.1.2.1.11.12.0|65|0
1.3.6.1.2.1.11.13.0|65|22169200
1.3.6.1.2.1.11.14.0|65|0
1.3.6.1.2.1.11.15.0|65|1398644
1.3.6.1.2.1.11.16.0|65|210003
1.3.6.1.2.1.11.17.0|65|0
1.3.6.1.2.1.11.18.0|65|0
1.3.6.1.2.1.11.19.0|65|0
1.3.6.1.2.1.11.20.0|65|0
1.3.6.1.2.1.11.21.0|65|2441084
1.3.6.1.2.1.11.22.0|65|0
1.3.6.1.2.1.11.24.0|65|0
1.3.6.1.2.1.11.25.0|65|0
1.3.6.1.2.1.11.26.0|65|0
1.3.6.1.2.1.11.27.0|65|0
1.3.6.1.2.1.11.28.0|65|3361321
1.3.6.1.2.1.11.29.0|65|0
1.3.6.1.2.1.11.30.0|2|1
1.3.6.1.2.1.11.31.0|65|0
1.3.6.1.2.1.11.32.0|65|0
1.3.6.1.4.1.232.2.2.4.2.0|4|
1.3.6.1.4.1.232.165.2.1.2.1.1.1|2|0
1.3.6.1.4.1.232.165.2.1.2.1.1.2|2|1
1.3.6.1.4.1.232.165.2.1.2.1.2.1|4|
1.3.6.1.4.1.232.165.2.1.2.1.2.2|4|
1.3.6.1.4.1.232.165.2.1.2.1.3.1|4|
1.3.6.1.4.1.232.165.2.1.2.1.3.2|4|
1.3.6.1.4.1.232.165.2.1.2.1.4.1|4|
1.3.6.1.4.1.232.165.2.1.2.1.4.2|4|
1.3.6.1.4.1.232.165.2.1.2.1.5.1|4|
1.3.6.1.4.1.232.165.2.1.2.1.5.2|4|
1.3.6.1.4.1.232.165.2.1.2.1.6.1|4|
1.3.6.1.4.1.232.165.2.1.2.1.6.2|4|
1.3.6.1.4.1.232.165.2.1.2.1.7.1|4|
1.3.6.1.4.1.232.165.2.1.2.1.7.2|4|
1.3.6.1.4.1.232.165.2.1.2.1.8.1|2|2
1.3.6.1.4.1.232.165.2.1.2.1.8.2|2|2
1.3.6.1.4.1.232.165.2.1.2.1.9.1|2|2
1.3.6.1.4.1.232.165.2.1.2.1.9.2|2|2
1.3.6.1.4.1.232.165.2.3.1.1.1.1|2|0
1.3.6.1.4.1.232.165.2.3.1.1.1.2|2|1
1.3.6.1.4.1.232.165.2.3.1.1.2.1|2|15
1.3.6.1.4.1.232.165.2.3.1.1.2.2|2|10
1.3.6.1.4.1.232.165.2.3.1.1.3.1|2|5409
1.3.6.1.4.1.232.165.2.3.1.1.3.2|2|3887
1.3.6.1.4.1.232.165.2.3.1.1.4.1|2|1587
1.3.6.1.4.1.232.165.2.3.1.1.4.2|2|1137
1.3.6.1.4.1.232.165.2.3.1.1.5.1|2|3
1.3.6.1.4.1.232.165.2.3.1.1.5.2|2|3
1.3.6.1.4.1.232.165.2.3.2.1.1.1.1|2|1
1.3.6.1.4.1.232.165.2.3.2.1.1.1.2|2|2
1.3.6.1.4.1.232.165.2.3.2.1.1.1.3|2|3
1.3.6.1.4.1.232.165.2.3.2.1.1.1.4|2|4
1.3.6.1.4.1.232.165.2.3.2.1.1.1.5|2|5
1.3.6.1.4.1.232.165.2.3.2.1.1.1.6|2|6
1.3.6.1.4.1.232.165.2.3.2.1.1.2.1|2|1
1.3.6.1.4.1.232.165.2.3.2.1.1.2.2|2|2
1.3.6.1.4.1.232.165.2.3.2.1.1.2.3|2|3
1.3.6.1.4.1.232.165.2.3.2.1.1.2.4|2|4
1.3.6.1.4.1.232.165.2.3.2.1.1.2.5|2|5
1.3.6.1.4.1.232.165.2.3.2.1.1.2.6|2|6
1.3.6.1.4.1.232.165.2.3.2.1.2.1.1|2|231
1.3.6.1.4.1.232.165.2.3.2.1.2.1.2|2|232
1.3.6.1.4.1.232.165.2.3.2.1.2.1.3|2|231
1.3.6.1.4.1.232.165.2.3.2.1.2.1.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.2.1.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.2.1.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.2.2.1|2|233
1.3.6.1.4.1.232.165.2.3.2.1.2.2.2|2|235
1.3.6.1.4.1.232.165.2.3.2.1.2.2.3|2|231
1.3.6.1.4.1.232.165.2.3.2.1.2.2.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.2.2.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.2.2.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.3.1.1|2|3
1.3.6.1.4.1.232.165.2.3.2.1.3.1.2|2|3
1.3.6.1.4.1.232.165.2.3.2.1.3.1.3|2|2
1.3.6.1.4.1.232.165.2.3.2.1.3.1.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.3.1.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.3.1.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.3.2.1|2|3
1.3.6.1.4.1.232.165.2.3.2.1.3.2.2|2|2
1.3.6.1.4.1.232.165.2.3.2.1.3.2.3|2|1
1.3.6.1.4.1.232.165.2.3.2.1.3.2.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.3.2.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.3.2.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.4.1.1|2|20
1.3.6.1.4.1.232.165.2.3.2.1.4.1.2|2|21
1.3.6.1.4.1.232.165.2.3.2.1.4.1.3|2|12
1.3.6.1.4.1.232.165.2.3.2.1.4.1.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.4.1.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.4.1.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.4.2.1|2|18
1.3.6.1.4.1.232.165.2.3.2.1.4.2.2|2|15
1.3.6.1.4.1.232.165.2.3.2.1.4.2.3|2|11
1.3.6.1.4.1.232.165.2.3.2.1.4.2.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.4.2.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.4.2.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.1.1|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.1.2|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.1.3|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.1.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.1.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.1.6|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.2.1|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.2.2|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.2.3|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.2.4|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.2.5|2|0
1.3.6.1.4.1.232.165.2.3.2.1.5.2.6|2|0