From b448040d585091c3712fe61612865d843737d716 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 27 Nov 2015 09:46:51 +0100 Subject: [PATCH] + Fix #223 --- network/extreme/snmp/mode/cpu.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/network/extreme/snmp/mode/cpu.pm b/network/extreme/snmp/mode/cpu.pm index bd8925471..1ead97521 100644 --- a/network/extreme/snmp/mode/cpu.pm +++ b/network/extreme/snmp/mode/cpu.pm @@ -260,6 +260,10 @@ sub manage_selection { my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_extremeCpuMonitorSystemEntry}, instance => $instance); + foreach (keys %{$mapping}) { + $result->{$_} = undef if (defined($result->{$_}) && $result->{$_} =~ /n\/a/i); + } + $self->{cpu}->{$instance} = {num => $instance, %$result}; }