From 9f7d5cbd5fb10cb23ae7f7abee4a79b49b321be4 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:04:49 +0200 Subject: [PATCH] + fix typo threshold (sub) & add missing call --- centreon-plugins/storage/ibm/TS3200/mode/globalstatus.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/storage/ibm/TS3200/mode/globalstatus.pm b/centreon-plugins/storage/ibm/TS3200/mode/globalstatus.pm index 5d0cb48d6..1f4a13020 100644 --- a/centreon-plugins/storage/ibm/TS3200/mode/globalstatus.pm +++ b/centreon-plugins/storage/ibm/TS3200/mode/globalstatus.pm @@ -48,18 +48,18 @@ sub new { return $self; } -sub check_treshold_overload { +sub check_threshold_overload { my ($self, %options) = @_; $self->{overload_th} = {}; foreach my $val (@{$self->{option_results}->{threshold_overload}}) { if ($val !~ /(.*?)=(.*)/) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload option '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'."); $self->{output}->option_exit(); } my ($filter, $threshold) = ($1, $2); if ($self->{output}->is_litteral_status(status => $threshold) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong treshold-overload status '" . $val . "'."); + $self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'."); $self->{output}->option_exit(); } $self->{overload_th}->{$filter} = $threshold; @@ -69,6 +69,7 @@ sub check_treshold_overload { sub check_options { my ($self, %options) = @_; $self->SUPER::init(%options); + $self->check_threshold_overload(); } sub get_severity {