+ fix typo threshold

This commit is contained in:
Sims24 2016-05-23 14:52:00 +02:00
parent c2a395477f
commit 2407469c1b
1 changed files with 3 additions and 3 deletions

View File

@ -119,12 +119,12 @@ sub check_options {
$self->{overload_th} = {}; $self->{overload_th} = {};
foreach my $val (@{$self->{option_results}->{threshold_overload}}) { foreach my $val (@{$self->{option_results}->{threshold_overload}}) {
if ($val !~ /^(.*?),(.*?),(.*)$/) { 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(); $self->{output}->option_exit();
} }
my ($section, $status, $filter) = ($1, $2, $3); my ($section, $status, $filter) = ($1, $2, $3);
if ($self->{output}->is_litteral_status(status => $status) == 0) { if ($self->{output}->is_litteral_status(status => $status) == 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->{output}->option_exit();
} }
$self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section})); $self->{overload_th}->{$section} = [] if (!defined($self->{overload_th}->{$section}));
@ -322,4 +322,4 @@ Example: --threshold-overload='sensors,CRITICAL,^(?!(ok)$)'
=back =back
=cut =cut