From 79bee83cf071493dd7ad6165142bf9ee26bd899f Mon Sep 17 00:00:00 2001 From: Sims24 Date: Mon, 23 May 2016 15:11:24 +0200 Subject: [PATCH] + fix typo threshold (sub) & add missing call --- storage/ibm/TS3100/mode/globalstatus.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/ibm/TS3100/mode/globalstatus.pm b/storage/ibm/TS3100/mode/globalstatus.pm index e338bd617..12eba93ad 100644 --- a/storage/ibm/TS3100/mode/globalstatus.pm +++ b/storage/ibm/TS3100/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 {