2010-07-11 15:31:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
global $valid_temp;
|
|
|
|
|
|
|
|
if ($device['os'] == "apc")
|
|
|
|
{
|
2010-07-11 23:49:26 +00:00
|
|
|
$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)
|
2010-07-11 15:31:48 +00:00
|
|
|
{
|
|
|
|
echo("APC UPS Internal ");
|
2010-07-11 23:49:26 +00:00
|
|
|
list($oid,$current) = explode(' ',$oids);
|
2010-07-11 15:31:48 +00:00
|
|
|
$precision = 1;
|
|
|
|
$type = "apc";
|
|
|
|
$index = 0;
|
|
|
|
$descr = "Internal Temperature";
|
2010-07-11 23:49:26 +00:00
|
|
|
discover_temperature($valid_temp, $device, $oid, $index, $type, $descr, $precision, NULL, NULL, $current);
|
2010-07-11 15:31:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|