mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Fix for other apc devices
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
if ($device['os'] == "apc")
|
||||
{
|
||||
# PDU - Phase
|
||||
$oids = snmp_walk($device, "rPDULoadPhaseConfigIndex", "-OsqnU", "PowerNet-MIB");
|
||||
$oids = snmp_walk($device, "rPDUStatusPhaseIndex", "-OsqnU", "PowerNet-MIB");
|
||||
if (empty($oids)) {
|
||||
$oids = snmp_walk($device, "rPDULoadPhaseConfigIndex", "-OsqnU", "PowerNet-MIB");
|
||||
}
|
||||
|
||||
if ($oids)
|
||||
{
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
@@ -210,4 +214,4 @@ if ($device['os'] == "apc")
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user