2010-07-17 12:00:14 +00:00
|
|
|
<?php
|
|
|
|
|
2010-07-29 18:25:11 +00:00
|
|
|
global $valid_sensor;
|
|
|
|
|
2010-07-17 12:00:14 +00:00
|
|
|
if ($device['os'] == "powerconnect")
|
|
|
|
{
|
|
|
|
$oids = snmp_get($device, ".1.3.6.1.4.1.674.10895.5000.2.6132.1.1.43.1.8.1.4.0", "-OsqnU", "");
|
|
|
|
if ($debug) { echo($oids."\n"); }
|
|
|
|
if ($oids)
|
|
|
|
{
|
|
|
|
echo("Powerconnect ");
|
|
|
|
list($oid,$current) = explode(' ',$oids);
|
2010-07-29 18:25:11 +00:00
|
|
|
$divisor = "1";
|
|
|
|
$multiplier = "1";
|
2010-07-17 12:00:14 +00:00
|
|
|
$type = "powerconnect";
|
2010-07-29 18:25:11 +00:00
|
|
|
$index = "0";
|
2010-07-17 12:00:14 +00:00
|
|
|
$descr = "Internal Temperature";
|
2010-07-29 18:25:11 +00:00
|
|
|
discover_sensor($valid_sensor, 'temperature', $device, $oid, $index, $type, $descr, $divisor, $multiplier, NULL, NULL, NULL, NULL, $current);
|
2010-07-17 12:00:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|