APC UPS V/Hz values support, extra AirPort detection string

git-svn-id: http://www.observium.org/svn/observer/trunk@1346 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-11 23:49:26 +00:00
parent 2e581828b6
commit 66c9047207
4 changed files with 58 additions and 7 deletions
+5 -5
View File
@@ -4,17 +4,17 @@ global $valid_temp;
if ($device['os'] == "apc")
{
$current = snmp_get($device, "1.3.6.1.4.1.318.1.1.1.2.2.2.0", "-OsqnU", "");
if ($debug) { echo($current."\n"); }
if ($current)
$oids = snmp_get($device, "1.3.6.1.4.1.318.1.1.1.2.2.2.0", "-OsqnU", "");
if ($debug) { echo($oids."\n"); }
if ($oids)
{
echo("APC UPS Internal ");
list($oid,$current) = explode(' ',$oids);
$precision = 1;
$type = "apc";
$index = 0;
$oid = "1.3.6.1.4.1.318.1.1.1.2.2.2.0";
$descr = "Internal Temperature";
discover_temperature($valid_temp, $device, $oid, $index, $type, trim($descr,'"'), $precision, NULL, NULL, $current);
discover_temperature($valid_temp, $device, $oid, $index, $type, $descr, $precision, NULL, NULL, $current);
}
}