mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
MAIPU MyPowerOS: CPU, Memory, expanded detection (#9825)
* New OS: MAIPU MyPowerOS * fix file permissions
This commit is contained in:
9
includes/discovery/mempools/mypoweros.inc.php
Executable file
9
includes/discovery/mempools/mypoweros.inc.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user