Files
librenms-librenms/includes/discovery/mempools/mypoweros.inc.php
TheGreatDoc 6ea0e72d73 MAIPU MyPowerOS: CPU, Memory, expanded detection (#9825)
* New OS: MAIPU MyPowerOS

* fix file permissions
2019-02-15 08:02:06 -06:00

10 lines
286 B
PHP
Executable File

<?php
if ($device['os'] === 'mypoweros') {
echo 'MAIPU-MEMORY-POOL: ';
$usage = snmp_get($device, 'allocBytesPercent.0', '-OvQ', 'MPIOS-MIB');
if (is_numeric($usage)) {
discover_mempool($valid_mempool, $device, 0, 'mypoweros', 'Memory', '100', null, null);
}
}