fix f5 filter name node

This commit is contained in:
qgarnier 2017-07-28 14:57:33 +02:00
parent d91eec2a3a
commit 53839c54e2
1 changed files with 2 additions and 2 deletions

View File

@ -196,8 +196,8 @@ sub manage_selection {
$oid =~ /^$branch_name\.(.*)$/;
my $instance = $1;
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&
$snmp_result->{$oid} !~ /$self->{option_results}->{filter_name}/) {
$self->{output}->output_add(long_msg => "skipping node '" . $snmp_result->{$oid} . "'.", debug => 1);
$snmp_result->{$branch_name}->{$oid} !~ /$self->{option_results}->{filter_name}/) {
$self->{output}->output_add(long_msg => "skipping node '" . $snmp_result->{$branch_name}->{$oid} . "'.", debug => 1);
next;
}