mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
fix XUPS-MIB currents
git-svn-id: http://www.observium.org/svn/observer/trunk@1591 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -28,7 +28,7 @@ if ($device['os'] == "powerware")
|
||||
}
|
||||
}
|
||||
|
||||
$oids = trim(snmp_walk($device, "xupsOutputCurrent", "-OsqnU"));
|
||||
$oids = trim(snmp_walk($device, "xupsOutputCurrent", "-OsqnU", "XUPS-MIB"));
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
list($unused,$numPhase) = explode(' ',$oids);
|
||||
for($i = 1; $i <= $numPhase;$i++)
|
||||
@@ -42,7 +42,7 @@ if ($device['os'] == "powerware")
|
||||
echo discover_sensor($valid_sensor, 'current', $device, $current_oid, $index, $type, $descr, $divisor, '1', NULL, NULL, NULL, NULL, $current);
|
||||
}
|
||||
|
||||
$oids = trim(snmp_walk($device, "xupsInputCurrent", "-OsqnU"));
|
||||
$oids = trim(snmp_walk($device, "xupsInputCurrent", "-OsqnU", "XUPS-MIB"));
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
list($unused,$numPhase) = explode(' ',$oids);
|
||||
for($i = 1; $i <= $numPhase;$i++)
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
# XUPS-MIB::xupsTestBattery.0 = INTEGER: 0
|
||||
# XUPS-MIB::xupsTestBatteryStatus.0 = INTEGER: unknown(1)
|
||||
# XUPS-MIB::xupsOutputLoad.0 = INTEGER: 19
|
||||
# XUPS-MIB::xupsOnBattery
|
||||
# XUPS-MIB::xupsLowBattery
|
||||
# Powerware also supports a small part of the IETF UPS-MIB (RFC1628)
|
||||
|
||||
# gamatronic: unknown
|
||||
|
||||
|
||||
Reference in New Issue
Block a user