2010-07-03 17:02:39 +00:00
|
|
|
<?php
|
|
|
|
|
2010-07-29 18:25:11 +00:00
|
|
|
global $valid_sensor;
|
|
|
|
|
2010-07-09 22:38:46 +00:00
|
|
|
if ($device['os'] == "papouch-tme")
|
|
|
|
{
|
|
|
|
echo("Papouch TME ");
|
2010-07-03 17:02:39 +00:00
|
|
|
|
2010-07-09 22:38:46 +00:00
|
|
|
$descr = snmp_get($device, "SNMPv2-SMI::enterprises.18248.1.1.3.0", "-Oqv");
|
2010-07-29 18:25:11 +00:00
|
|
|
$temperature = snmp_get($device, "SNMPv2-SMI::enterprises.18248.1.1.1.0", "-Oqv") / 10;
|
2010-07-03 17:02:39 +00:00
|
|
|
|
2010-07-29 18:25:11 +00:00
|
|
|
if ($descr != "" && $is_numeric($temperature) && $temperature > "0")
|
2010-07-09 22:38:46 +00:00
|
|
|
{
|
2010-07-29 18:25:11 +00:00
|
|
|
$temperature_oid = ".1.3.6.1.4.1.18248.1.1.1.0";
|
2010-07-09 22:38:46 +00:00
|
|
|
$descr = trim(str_replace("\"", "", $descr));
|
2010-07-29 18:25:11 +00:00
|
|
|
discover_sensor($valid_sensor, 'temperature', $device, $temperature_oid, "1", 'papouch-tme', $descr, '1', '1', NULL, NULL, NULL, NULL, $temperature);
|
2010-07-03 17:02:39 +00:00
|
|
|
}
|
2010-07-09 22:38:46 +00:00
|
|
|
}
|
2010-07-03 17:02:39 +00:00
|
|
|
|
|
|
|
?>
|