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
This commit is contained in:
Vitali Kari
2019-11-16 18:17:25 +01:00
committed by PipoCanaja
parent 75f3a7ff12
commit 7c1e6cb8cf
16 changed files with 71454 additions and 7151 deletions

View File

@@ -0,0 +1,16 @@
<?php
if (!is_array($mempool_cache['ies5000-mem'])) {
$mempool_cache['ies5000-mem'] = snmpwalk_cache_oid($device, 'memoryUsageTable', null, 'ZYXEL-IES5000-MIB', 'zyxel', ['-LE 3', '-OQUs', '-Pu']);
d_echo($mempool_cache);
} else {
d_echo('Cached!');
}
$entry = $mempool_cache['ies5000-mem'][$mempool['mempool_index']];
$mempool['total'] = 100;
$mempool['perc'] = $entry['memoryCurValue'];
$mempool['used'] = $mempool['perc'];
$mempool['free'] = ($mempool['total'] - $mempool['used']);
$mempool['perc_warn'] = $entry['memoryHighThresh'];