+ last fix on bigip f5

This commit is contained in:
garnier-quentin 2015-07-07 14:55:39 +02:00
parent 2795524af8
commit a1cdf596d0
1 changed files with 2 additions and 0 deletions

View File

@ -276,6 +276,8 @@ sub manage_selection {
my $result = $self->{snmp}->map_instance(mapping => $mapping->{$map}, results => $self->{results}->{$branch}, instance => $instance);
$result->{Name} = $instance;
# prefix by '1.4'
$result->{Name} =~ s/^1\.4\.//;
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&
$result->{Name} !~ /$self->{option_results}->{filter_name}/) {
$self->{output}->output_add(long_msg => "Skipping '" . $result->{Name} . "': no matching filter name.");