mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
21
includes/discovery/temperatures/powerconnect.inc.php
Normal file
21
includes/discovery/temperatures/powerconnect.inc.php
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user