Files
librenms-librenms/includes/discovery/mempools/ies52xxM.inc.php
2020-09-21 15:40:17 +02:00

18 lines
556 B
PHP

<?php
if ($device['os'] == 'ies52xxM') {
$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);
}
}