diff --git a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm index 35b89ab13..4ced83a21 100644 --- a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm +++ b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm @@ -135,7 +135,7 @@ sub manage_selection { foreach my $snapmirror (@{$result}) { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $snapmirror->{source_location} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{name} . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{source_location} . "': no matching filter name.", debug => 1); next; } diff --git a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm index aa49bbb5d..3225524d5 100644 --- a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm +++ b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm @@ -97,7 +97,7 @@ sub manage_selection { foreach my $snapmirror (@{$result}) { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $snapmirror->{source_location} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{name} . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{source_location} . "': no matching filter name.", debug => 1); next; }