From 7b85301cf3fcda98486a337d5d1e5ad6f64c4d80 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 15 Mar 2017 12:24:15 +0100 Subject: [PATCH] + fix beeware list mode --- network/beeware/snmp/mode/listreverseproxy.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/beeware/snmp/mode/listreverseproxy.pm b/network/beeware/snmp/mode/listreverseproxy.pm index 0dcdd7de3..cbe53b19e 100644 --- a/network/beeware/snmp/mode/listreverseproxy.pm +++ b/network/beeware/snmp/mode/listreverseproxy.pm @@ -65,7 +65,7 @@ sub manage_selection { my $status = defined($mapping_running{$snmp_result->{$oid_rp . '.' . $instance . '.' . $oid_running_suffix}}) ? $mapping_running{$snmp_result->{$oid_rp . '.' . $instance . '.' . $oid_running_suffix}} : 'unknown'; - if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && + if (defined($self->{option_results}->{filter_status}) && $self->{option_results}->{filter_status} ne '' && $status !~ /$self->{option_results}->{filter_status}/) { $self->{output}->output_add(long_msg => "skipping '" . $instance . "': no matching filter.", debug => 1); next;