mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
zyxel ies dslam temperature sensors
git-svn-id: http://www.observium.org/svn/observer/trunk@1426 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
29
includes/discovery/temperatures/zyxel-ies.inc.php
Normal file
29
includes/discovery/temperatures/zyxel-ies.inc.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
global $valid_temp;
|
||||
|
||||
if ($device['os'] == 'ies')
|
||||
{
|
||||
|
||||
echo("ZyXEL IES ");
|
||||
|
||||
$oids = array();
|
||||
|
||||
$oids = snmpwalk_cache_multi_oid($device, "accessSwitchSysTempCurValue", $oids, "ZYXEL-AS-MIB");
|
||||
$oids = snmpwalk_cache_multi_oid($device, "accessSwitchSysTempHighThresh", $oids, "ZYXEL-AS-MIB");
|
||||
|
||||
if(is_array($oids[$device['device_id']]))
|
||||
{
|
||||
foreach($oids[$device[device_id]] as $index => $entry)
|
||||
{
|
||||
$entPhysicalIndex = $index;
|
||||
$descr = trim(snmp_get($device, "accessSwitchSysTempDescr.".$index, "-Oqv", "ZYXEL-AS-MIB"),'"');
|
||||
$oid = ".1.3.6.1.4.1.890.1.5.1.1.6.1.2.".$index;
|
||||
$current = $entry['accessSwitchSysTempCurValue'];
|
||||
$divisor = 1;
|
||||
|
||||
discover_temperature($valid_temp, $device, $oid, $index, "entity-sensor", $descr, $divisor, NULL, $entry['accessSwitchSysTempHighThresh'], $current);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user