From c07e164769fb4c7b944a792ebcaab0296b4cffa6 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 6 Feb 2017 11:25:19 +0100 Subject: [PATCH] + Fix memory value --- network/f5/bigip/snmp/mode/tmmusage.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/network/f5/bigip/snmp/mode/tmmusage.pm b/network/f5/bigip/snmp/mode/tmmusage.pm index 9713855ec..6f578df83 100644 --- a/network/f5/bigip/snmp/mode/tmmusage.pm +++ b/network/f5/bigip/snmp/mode/tmmusage.pm @@ -155,8 +155,8 @@ my $mapping = { sysTmmStatClientCurConns => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.12' }, sysTmmStatServerTotConns => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.18' }, sysTmmStatServerCurConns => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.19' }, - sysTmmStatMemoryTotal => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.31' }, # KB - sysTmmStatMemoryUsed => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.32' }, # KB + sysTmmStatMemoryTotal => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.31' }, # B + sysTmmStatMemoryUsed => { oid => '.1.3.6.1.4.1.3375.2.1.8.2.3.1.32' }, # B }; my $oid_sysTmmStatEntry = '.1.3.6.1.4.1.3375.2.1.8.2.3.1'; @@ -182,9 +182,7 @@ sub manage_selection { $self->{output}->output_add(long_msg => "skipping '" . $result->{sysTmmStatTmmId} . "': no matching filter name.", debug => 1); next; } - - $result->{sysTmmStatMemoryTotal} *= 1024; - $result->{sysTmmStatMemoryUsed} *= 1024; + $self->{tmm}->{$result->{sysTmmStatTmmId}} = { display => $result->{sysTmmStatTmmId}, %$result