mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* - update yzyxel mibs - update definitions für ies series - slot state and alarm support via yaml * more sensors * add new device Zyxel IES4206 * restore original ies files * revert function stuff * update to latest official mib * rebase
16 lines
473 B
PHP
16 lines
473 B
PHP
<?php
|
|
|
|
$array = snmpwalk_cache_oid($device, 'memStatsTable', null, 'IES5206-MIB', 'zyxel');
|
|
|
|
if (is_array($array)) {
|
|
echo 'IES52XXM: ';
|
|
foreach ($array as $key => $value) {
|
|
if (is_numeric($key) && is_numeric($value['memStatsCurrent'])) {
|
|
$perc_warn = $value['memStatsHighThreshold'];
|
|
discover_mempool($valid_mempool, $device, $key, 'ies52xxM-mem', 'Memory '.$key, null, null, null, $perc_warn);
|
|
}
|
|
}
|
|
|
|
unset($array);
|
|
}
|