This commit is contained in:
garnier-quentin 2015-11-27 09:46:51 +01:00
parent 39fc70f65c
commit b448040d58
1 changed files with 4 additions and 0 deletions

View File

@ -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};
}