mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
AOS Advanced Support. (#11500)
* Comes from PR11322. * Code changes to solve github-apply warnings. Removed aos tests. * Added new aos tests.
This commit is contained in:
9
includes/polling/mempools/aos6.inc.php
Executable file
9
includes/polling/mempools/aos6.inc.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$mempool['units'] = '1';
|
||||
|
||||
$mempool['total'] = snmp_get($device, 'systemHardwareMemorySize.0', '-OvQ', 'ALCATEL-IND1-SYSTEM-MIB');
|
||||
$percent = snmp_get($device, 'healthDeviceMemoryLatest.0', '-OvQ', 'ALCATEL-IND1-HEALTH-MIB');
|
||||
|
||||
$mempool['used'] = ($mempool['total'] * ($percent / 100));
|
||||
$mempool['free'] = ($mempool['total'] - $mempool['used']);
|
||||
Reference in New Issue
Block a user