fix cisco memory

This commit is contained in:
garnier-quentin 2019-04-16 16:48:20 +02:00
parent 2b238b7e65
commit a5b7f761d7
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ sub check_memory_pool {
foreach my $oid (keys %{$snmp_result}) {
next if ($oid !~ /^$mapping_memory_pool->{ciscoMemoryPoolName}->{oid}\.(.*)$/);
my $instance = $1;
my $result = $options{snmp}->map_instance(mapping => $mapping_memory_pool, results => $snmp_result, instance => $instance);
my $result = $self->{snmp}->map_instance(mapping => $mapping_memory_pool, results => $snmp_result, instance => $instance);
$self->{checked_memory} = 1;
if (defined($self->{option_results}->{filter_pool}) && $self->{option_results}->{filter_pool} ne '' &&
@ -231,7 +231,7 @@ sub check_memory_enhanced_pool {
foreach my $oid (keys %{$snmp_result}) {
next if ($oid !~ /^$mapping_enh_memory_pool->{cempMemPoolName}->{oid}\.(.*)$/);
my $instance = $1;
my $result = $options{snmp}->map_instance(mapping => $mapping_enh_memory_pool, results => $snmp_result, instance => $instance);
my $result = $self->{snmp}->map_instance(mapping => $mapping_enh_memory_pool, results => $snmp_result, instance => $instance);
$self->{checked_memory} = 1;
if (defined($self->{option_results}->{filter_pool}) && $self->{option_results}->{filter_pool} ne '' &&