This commit is contained in:
Quentin Garnier 2014-05-16 16:22:53 +02:00
parent 3054d15834
commit 097366c5ea
1 changed files with 1 additions and 1 deletions

View File

@ -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};
}