mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
name current differently on single phase APC PDUs
git-svn-id: http://www.observium.org/svn/observer/trunk@1350 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -39,7 +39,14 @@ if ($device['os'] == "apc")
|
||||
$limit = snmp_get($device, $limit_oid, "-Oqv", ""); # No / $precision here! Nice, APC!
|
||||
$lowlimit = snmp_get($device, $lowlimit_oid, "-Oqv", ""); # No / $precision here! Nice, APC!
|
||||
$warnlimit = snmp_get($device, $warnlimit_oid, "-Oqv", ""); # No / $precision here! Nice, APC!
|
||||
$descr = "Phase $phase";
|
||||
if (count(explode("\n",$oids)) != 1)
|
||||
{
|
||||
$descr = "Phase $phase";
|
||||
}
|
||||
else
|
||||
{
|
||||
$descr = "Output";
|
||||
}
|
||||
|
||||
echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, $lowlimit, $warnlimit, $limit, $current);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user