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:
Tom Laermans
2010-07-13 10:33:07 +00:00
parent 2b8285099c
commit 190ee810aa

View File

@@ -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);
}