mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
8 lines
270 B
PHP
8 lines
270 B
PHP
![]() |
<?php
|
||
|
if ($device['os'] === 'stoneos') {
|
||
|
$currentMemory = snmp_get($device, 'sysCurMemory.0', '-OvQU', 'HILLSTONE-SYSTEM-MIB');
|
||
|
if (is_numeric($currentMemory)) {
|
||
|
discover_mempool($valid_mempool, $device, 0, 'stoneos', 'Memory', '1', null, null);
|
||
|
}
|
||
|
}
|