mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add better support for Eaton UPS (#13588)
* fix eaton ups * add serial number * regex
This commit is contained in:
64
includes/definitions/discovery/eatonups.yaml
Normal file
64
includes/definitions/discovery/eatonups.yaml
Normal file
@ -0,0 +1,64 @@
|
||||
mib: XUPS-MIB:EATON-OIDS:EATON-EMP-MIB:UPS-MIB
|
||||
modules:
|
||||
os:
|
||||
hardware: XUPS-MIB::xupsIdentModel.0
|
||||
version: XUPS-MIB::xupsIdentSoftwareVersion.0
|
||||
serial: UPS-MIB::upsIdentName.0
|
||||
serial_regex: '/ID: (?<serial>[^ ]+)/'
|
||||
sensors:
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: xupsEnvironment
|
||||
value: xupsEnvAmbientTemp
|
||||
num_oid: '.1.3.6.1.4.1.534.1.6.1.{{ $index }}'
|
||||
descr: 'Ambient'
|
||||
index: 'xupsEnvAmbientTemp.{{ $index }}'
|
||||
load:
|
||||
data:
|
||||
-
|
||||
oid: xupsOutput
|
||||
value: xupsOutputLoad
|
||||
num_oid: '.1.3.6.1.4.1.534.1.4.1.{{ $index }}'
|
||||
descr: 'Output Load'
|
||||
index: 'xupsOutputLoad.{{ $index }}'
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: xupsBattery
|
||||
value: xupsBatteryAbmStatus
|
||||
num_oid: '.1.3.6.1.4.1.534.1.2.5.{{ $index }}'
|
||||
descr: 'Battery Status {{ $index }}'
|
||||
index: 'xupsBatteryAbmStatus.{{ $index }}'
|
||||
states:
|
||||
- { value: 2, descr: batteryDischarging, graph: 1, generic: 2 }
|
||||
- { value: 3, descr: batteryFloating, graph: 1, generic: 0 }
|
||||
- { value: 4, descr: batteryResting, graph: 1, generic: 0 }
|
||||
- { value: 5, descr: unknown, graph: 1, generic: 3 }
|
||||
- { value: 6, descr: batteryDisconnected, graph: 1, generic: 2 }
|
||||
- { value: 7, descr: batteryUnderTest, graph: 1, generic: 0 }
|
||||
- { value: 8, descr: checkBattery, graph: 1, generic: 2 }
|
||||
-
|
||||
oid: xupsTest
|
||||
value: xupsTestBatteryStatus
|
||||
num_oid: '.1.3.6.1.4.1.534.1.8.2.0.{{ $index }}'
|
||||
descr: 'Battery Test Status {{ $index }}'
|
||||
index: 'xupsTestBatteryStatus.{{ $index }}'
|
||||
states:
|
||||
- { value: 1, descr: unknown, graph: 1, generic: 3 }
|
||||
- { value: 2, descr: passed, graph: 1, generic: 0 }
|
||||
- { value: 3, descr: failed, graph: 1, generic: 2 }
|
||||
- { value: 4, descr: inProgress, graph: 1, generic: 0 }
|
||||
- { value: 5, descr: notSupported, graph: 1, generic: 0 }
|
||||
- { value: 6, descr: inhibited, graph: 1, generic: 2 }
|
||||
- { value: 7, descr: scheduled, graph: 1, generic: 0 }
|
||||
runtime:
|
||||
data:
|
||||
-
|
||||
oid: xupsBattery
|
||||
value: xupsBatTimeRemaining
|
||||
num_oid: '.1.3.6.1.4.1.534.1.2.1.{{ $index }}'
|
||||
descr: 'Runtime'
|
||||
index: 'xupsBatTimeRemaining.{{ $index }}'
|
||||
divisor: 60
|
||||
|
1221
tests/data/eatonups_eaton-connectups.json
Normal file
1221
tests/data/eatonups_eaton-connectups.json
Normal file
File diff suppressed because it is too large
Load Diff
57
tests/snmpsim/eatonups_eaton-connectups.snmprec
Normal file
57
tests/snmpsim/eatonups_eaton-connectups.snmprec
Normal file
@ -0,0 +1,57 @@
|
||||
1.3.6.1.2.1.1.1.0|4|ConnectUPS Web/SNMP Card V4.36
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.534.1
|
||||
1.3.6.1.2.1.1.4.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.2.1|4|UM9008
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|7
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|1500
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|10000000
|
||||
1.3.6.1.2.1.2.2.1.6.1|4x|00E0D8173BF3
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.9.1|67|1640132
|
||||
1.3.6.1.2.1.2.2.1.10.1|65|5772939
|
||||
1.3.6.1.2.1.2.2.1.11.1|65|48639
|
||||
1.3.6.1.2.1.2.2.1.12.1|65|25
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.1|65|7088615
|
||||
1.3.6.1.2.1.2.2.1.17.1|65|47629
|
||||
1.3.6.1.2.1.2.2.1.18.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.21.1|66|16
|
||||
1.3.6.1.2.1.2.2.1.22.1|6|1.3.6.1
|
||||
1.3.6.1.2.1.4.20.1.2.1|2|1
|
||||
1.3.6.1.2.1.4.20.1.3.0|65|16777215
|
||||
1.3.6.1.2.1.4.20.1.3.1|65|16777215
|
||||
1.3.6.1.2.1.33.1.1.1.0|4|Eaton Corporation
|
||||
1.3.6.1.2.1.33.1.1.5.0|4|ID: GG435A0270 , Msg: 103006455-6591
|
||||
1.3.6.1.4.1.534.1.1.2.0|4|PW9130 1000VA-R
|
||||
1.3.6.1.4.1.534.1.1.3.0|4| FP: 0.13 INV: 1.29
|
||||
1.3.6.1.4.1.534.1.2.1.0|2|1948
|
||||
1.3.6.1.4.1.534.1.2.2.0|2|39
|
||||
1.3.6.1.4.1.534.1.2.4.0|2|100
|
||||
1.3.6.1.4.1.534.1.2.5.0|2|4
|
||||
1.3.6.1.4.1.534.1.2.6.0|4|01/01/2001
|
||||
1.3.6.1.4.1.534.1.3.1.0|2|500
|
||||
1.3.6.1.4.1.534.1.3.4.1.2.1|2|234
|
||||
1.3.6.1.4.1.534.1.4.1.0|2|35
|
||||
1.3.6.1.4.1.534.1.4.2.0|2|500
|
||||
1.3.6.1.4.1.534.1.4.3.0|2|1
|
||||
1.3.6.1.4.1.534.1.4.4.1.1.1|2|1
|
||||
1.3.6.1.4.1.534.1.4.4.1.2.1|2|229
|
||||
1.3.6.1.4.1.534.1.4.4.1.3.1|2|2
|
||||
1.3.6.1.4.1.534.1.4.4.1.4.1|2|246
|
||||
1.3.6.1.4.1.534.1.4.5.0|2|3
|
||||
1.3.6.1.4.1.534.1.5.1.0|2|500
|
||||
1.3.6.1.4.1.534.1.5.3.1.2.1|2|234
|
||||
1.3.6.1.4.1.534.1.6.1.0|2|25
|
||||
1.3.6.1.4.1.534.1.6.2.0|2|0
|
||||
1.3.6.1.4.1.534.1.6.3.0|2|40
|
||||
1.3.6.1.4.1.534.1.6.7.0|2|0
|
||||
1.3.6.1.4.1.534.1.8.1.0|2|1
|
||||
1.3.6.1.4.1.534.1.8.2.0|2|2
|
||||
1.3.6.1.4.1.534.1.8.2.0.0|2|2
|
Reference in New Issue
Block a user