mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
eatonpdu new device (#9947)
This commit is contained in:
32
includes/definitions/discovery/eatonpdu.yaml
Normal file
32
includes/definitions/discovery/eatonpdu.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
mib: PDU-MIB
|
||||
modules:
|
||||
sensors:
|
||||
power:
|
||||
data:
|
||||
-
|
||||
oid: outletTable
|
||||
value: outletActivePower
|
||||
num_oid: '.1.3.6.1.4.1.534.6.6.6.1.2.2.1.7.{{ $index }}'
|
||||
multiplier: 1
|
||||
descr: 'S{{ $index }} {{ $outletLabel }} Output'
|
||||
index: 'outletActivePower.{{ $index }}'
|
||||
current:
|
||||
data:
|
||||
-
|
||||
oid: outletTable
|
||||
value: outletCurrent
|
||||
num_oid: '.1.3.6.1.4.1.534.6.6.6.1.2.2.1.4.{{ $index }}'
|
||||
divisor: 1000
|
||||
descr: 'S{{ $index }} {{ $outletLabel }} Current'
|
||||
index: 'outletCurrent.{{ $index }}'
|
||||
high_limit: outletCurrentUpperCritical
|
||||
warn_limit: outletCurrentUpperWarning
|
||||
voltage:
|
||||
data:
|
||||
-
|
||||
oid: outletTable
|
||||
value: outletVoltage
|
||||
num_oid: '.1.3.6.1.4.1.534.6.6.6.1.2.2.1.6.{{ $index }}'
|
||||
descr: 'S{{ $index }} {{ $outletLabel }} Voltage'
|
||||
index: 'outletVoltage.{{ $index }}'
|
||||
|
@@ -5,6 +5,7 @@ icon: eaton
|
||||
mib_dir:
|
||||
- eaton
|
||||
over:
|
||||
- { graph: device_power, text: Power }
|
||||
- { graph: device_current, text: Current }
|
||||
discovery:
|
||||
- sysObjectID: .1.3.6.1.4.1.534.6.
|
||||
|
@@ -11,5 +11,7 @@
|
||||
*/
|
||||
|
||||
$hardware = trim(snmp_get($device, 'partNumber.0', '-Ovq', 'EATON-EPDU-MIB'), '"');
|
||||
$version = trim(snmp_get($device, 'firmwareVersion.0', '-Ovq', 'EATON-EPDU-MIB'), '"');
|
||||
$serial = trim(snmp_get($device, 'serialNumber.0', '-Ovq', 'EATON-EPDU-MIB'), '"');
|
||||
$hardware .= trim(snmp_get($device, 'objectName.0', '-Ovq', 'PDU-MIB'), '"');
|
||||
$version = trim(snmp_get($device, 'firmwareVersion.0', '-Ovq', 'EATON-EPDU-MIB:PDU-MIB'), '"');
|
||||
$serial = trim(snmp_get($device, 'serialNumber.0', '-Ovq', 'EATON-EPDU-MIB:PDU-MIB'), '"');
|
||||
|
||||
|
Reference in New Issue
Block a user