2011-03-23 11:54:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if ($device['os'] == "aos")
|
|
|
|
{
|
|
|
|
echo("Alcatel-Lucent Device: ");
|
|
|
|
|
|
|
|
$descr = "Chassis Temperature";
|
|
|
|
$temperature = snmp_get($device, ".1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.17.0", "-Oqv");
|
|
|
|
|
|
|
|
if ($descr != "" && is_numeric($temperature) && $temperature > "0")
|
|
|
|
{
|
|
|
|
$temperature_oid = ".1.3.6.1.4.1.18248.1.1.1.0";
|
2011-05-04 11:04:19 +00:00
|
|
|
discover_sensor($valid['sensor'], 'temperature', $device, ".1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.17.0", "1", 'alcatel-device', $descr, '1', '1', NULL, NULL, NULL, NULL, $temperature);
|
2011-03-23 11:54:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|