fix: Correct memory calculation for screenos (#7191)

correct memory calculation (SSG-140)
This commit is contained in:
sbeneke
2017-08-21 23:56:13 +02:00
committed by Neil Lathwood
parent 6d6d8cef37
commit e68082d178

View File

@@ -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']);