2010-07-18 22:12:12 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($device['os'] == 'ies') {
|
|
|
|
echo 'ZyXEL IES ';
|
2011-03-16 17:53:20 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$oids = array();
|
2011-03-16 17:53:20 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$oids = snmpwalk_cache_multi_oid($device, 'accessSwitchSysTempCurValue', $oids, 'ZYXEL-AS-MIB');
|
|
|
|
$oids = snmpwalk_cache_multi_oid($device, 'accessSwitchSysTempHighThresh', $oids, 'ZYXEL-AS-MIB');
|
2011-03-16 17:53:20 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_array($oids)) {
|
2015-07-13 20:10:26 +02:00
|
|
|
foreach ($oids as $index => $entry) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$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';
|
2016-08-28 12:32:58 -05:00
|
|
|
discover_sensor(
|
|
|
|
$valid['sensor'],
|
|
|
|
'temperature',
|
|
|
|
$device,
|
|
|
|
$oid,
|
|
|
|
$index,
|
|
|
|
'zyxel-ies',
|
|
|
|
$descr,
|
|
|
|
'1',
|
|
|
|
'1',
|
|
|
|
null,
|
|
|
|
$entry['accessSwitchSysTempHighThresh'],
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
$current
|
|
|
|
);
|
2015-07-10 13:36:21 +02:00
|
|
|
}
|
2010-07-18 22:12:12 +00:00
|
|
|
}
|
|
|
|
}
|