mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Correct memory calculation for screenos (#7191)
correct memory calculation (SSG-140)
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
// Simple hard-coded poller for Juniper ScreenOS
|
||||
// Yes, it really can be this simple.
|
||||
$mempool['used'] = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.1.0', '-OvQ');
|
||||
$mempool['total'] = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.2.0', '-OvQ');
|
||||
$mempool['free'] = ($mempool['total'] - $mempool['used']);
|
||||
$mempool['free'] = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.2.0', '-OvQ');
|
||||
$mempool['total'] = ($mempool['free'] + $mempool['used']);
|
||||
|
Reference in New Issue
Block a user