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 (#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:
16
includes/polling/mempools/ies5000.inc.php
Normal file
16
includes/polling/mempools/ies5000.inc.php
Normal 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'];
|
||||
Reference in New Issue
Block a user