mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2238 61d68cd4-352d-0410-923a-c4978735b2b8
18 lines
522 B
PHP
18 lines
522 B
PHP
<?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";
|
|
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);
|
|
}
|
|
}
|
|
|
|
?>
|