diff --git a/centreon/common/airespace/snmp/mode/apchannelinterference.pm b/centreon/common/airespace/snmp/mode/apchannelinterference.pm index eb0e9827d..5905154ae 100644 --- a/centreon/common/airespace/snmp/mode/apchannelinterference.pm +++ b/centreon/common/airespace/snmp/mode/apchannelinterference.pm @@ -82,7 +82,7 @@ sub manage_selection { my ($self, %options) = @_; $self->{ap} = {}; - $self->{results} = $self->{snmp}->get_multiple_table(oids => [ { oid => $oid_bsnAPName }, + $self->{results} = $options{snmp}->get_multiple_table(oids => [ { oid => $oid_bsnAPName }, { oid => $oid_bsnAPIfInterferencePower }, { oid => $oid_bsnAPIfInterferenceUtilization }, ], diff --git a/centreon/plugins/templates/counter.pm b/centreon/plugins/templates/counter.pm index b3ca7b0d5..79c574a64 100644 --- a/centreon/plugins/templates/counter.pm +++ b/centreon/plugins/templates/counter.pm @@ -140,7 +140,7 @@ sub run_global { my $obj = $_->{obj}; next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' && - $_->{name} !~ /$self->{option_results}->{filter_counters}/); + $_->{label} !~ /$self->{option_results}->{filter_counters}/); $obj->set(instance => $options{config}->{name}); @@ -205,7 +205,7 @@ sub run_instances { my $obj = $_->{obj}; next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' && - $_->{name} !~ /$self->{option_results}->{filter_counters}/); + $_->{label} !~ /$self->{option_results}->{filter_counters}/); $obj->set(instance => $id);