Files
librenms-librenms/includes/discovery/mempools/ies52xxM.inc.php
Vitali Kari a31aef6313 Add support for ZyXEL IES4206/5206/5212/6217 MSANs (#10789)
* - 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
2019-11-12 10:22:08 +01:00

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);
}