From 097366c5ea0aa5371d13a7388882da2613c917b5 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Fri, 16 May 2014 16:22:53 +0200 Subject: [PATCH] Refs #5517 --- centreon/plugins/output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/output.pm b/centreon/plugins/output.pm index d76a2afe9..f3d91d5d6 100644 --- a/centreon/plugins/output.pm +++ b/centreon/plugins/output.pm @@ -395,7 +395,7 @@ sub output_txt { $self->explode_perfdatas(); foreach my $perf (@{$self->{perfdatas}}) { next if (defined($self->{option_results}->{filter_perfdata}) && - $_->{label} !~ /$self->{option_results}->{filter_perfdata}/); + $perf->{label} !~ /$self->{option_results}->{filter_perfdata}/); $self->range_perfdata(ranges => [\$perf->{warning}, \$perf->{critical}]); print " '" . $perf->{label} . "'=" . $perf->{value} . $perf->{unit} . ";" . $perf->{warning} . ";" . $perf->{critical} . ";" . $perf->{min} . ";" . $perf->{max}; }