powerconnect 62xx temperature reading - can only find one even though there is one per stackmember, sigh

git-svn-id: http://www.observium.org/svn/observer/trunk@1372 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-17 12:00:14 +00:00
parent f587200742
commit e9ebab6c81

View File

@@ -0,0 +1,21 @@
<?php
global $valid_temp;
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);
$precision = 1;
$type = "powerconnect";
$index = 0;
$descr = "Internal Temperature";
discover_temperature($valid_temp, $device, $oid, $index, $type, $descr, $precision, NULL, NULL, $current);
}
}
?>