mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add support for ZyXEL IES-5005 and IES-5106 DSLAMs * remove cpu high_limit * fix broken mib VDSL2-LINE-TC-MIB rework os polling
16 lines
512 B
PHP
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);
|
|
}
|