From 4dc06dd78258aebba9c87a269fd44e5b7c5c1dc0 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Sat, 15 Aug 2015 19:49:45 +0200 Subject: [PATCH] + fix indentation --- apps/centreon/map/jmx/mode/eventstatistics.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/centreon/map/jmx/mode/eventstatistics.pm b/apps/centreon/map/jmx/mode/eventstatistics.pm index a23d7260c..80ce73119 100644 --- a/apps/centreon/map/jmx/mode/eventstatistics.pm +++ b/apps/centreon/map/jmx/mode/eventstatistics.pm @@ -63,9 +63,9 @@ sub check_options { foreach my $label ('warning_global', 'critical_global', 'warning_create', 'critical_create', 'warning_update', 'critical_update', 'warning_remove', 'critical_remove') { if (($self->{perfdata}->threshold_validate(label => $label, value => $self->{option_results}->{$label})) == 0) { my ($label_opt) = $label; - $label_opt =~ tr/_/-/; - $self->{output}->add_option_msg(short_msg => "Wrong " . $label_opt . " threshold '" . $self->{option_results}->{$label} . "'."); - $self->{output}->option_exit(); + $label_opt =~ tr/_/-/; + $self->{output}->add_option_msg(short_msg => "Wrong " . $label_opt . " threshold '" . $self->{option_results}->{$label} . "'."); + $self->{output}->option_exit(); } } @@ -100,10 +100,10 @@ sub run { my $value = int(($result->{"com.merethis.studio:name=statistics,type=whatsup"}->{$type}->{andIncrement} - $old_val) / ($new_datas->{last_timestamp} - $old_timestamp)); $self->{output}->perfdata_add(label => $type, - value => $value, + value => $value, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning_' . $mapping_eventtype{$type}), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical_' . $mapping_eventtype{$type}), - min => 0); + min => 0); my $exit = $self->{perfdata}->threshold_check(value => $value, threshold => [ { label => 'critical_' . $mapping_eventtype{$type}, exit_litteral => 'critical' },