poll serial from netscaler, scale memory properly :)

git-svn-id: http://www.observium.org/svn/observer/trunk@2833 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-01-18 12:08:31 +00:00
parent aaa47163ba
commit adbfff2308
2 changed files with 2 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
## Simple hard-coded poller for Netscaler
## Yes, it really can be this simple.
$mempool['total'] = snmp_get($device, ".1.3.6.1.4.1.5951.4.1.1.41.4.0", "-OvQ");
$mempool['total'] = snmp_get($device, ".1.3.6.1.4.1.5951.4.1.1.41.4.0", "-OvQ") * 1047552;
$mempool['perc'] = snmp_get($device, ".1.3.6.1.4.1.5951.4.1.1.41.2.0", "-OvQ");
$mempool['used'] = $mempool['total'] / 100 * $mempool['perc'];
$mempool['free'] = $mempool['total'] - $mempool['used'];