Files
librenms-librenms/includes/discovery/mempools/ies5000.inc.php
Vitali Kari 7c1e6cb8cf Add support for ZyXEL IES-5005 and IES-5106 DSLAMs (#10804)
* Add support for ZyXEL IES-5005 and IES-5106 DSLAMs

* remove cpu high_limit

* fix broken mib VDSL2-LINE-TC-MIB
rework os polling
2019-11-16 18:17:25 +01:00

16 lines
512 B
PHP

<?php
$array = snmpwalk_cache_oid($device, 'memoryUsageTable', null, 'ZYXEL-IES5000-MIB', 'zyxel', ['-LE 3', '-OQUs', '-Pu']);
if (is_array($array)) {
echo 'IES5000: ';
foreach ($array as $key => $value) {
if (is_numeric($value['memoryCurValue'])) {
$perc_warn = $value['memoryHighThresh'];
$descr = $value['memoryDescr'];
discover_mempool($valid_mempool, $device, $key, 'ies5000', $descr, null, null, null, $perc_warn);
}
}
unset($array);
}