+ Fix global-status check

This commit is contained in:
qgarnier 2015-02-16 17:42:13 +01:00
parent 17ab1e2bee
commit b425799fdb

View File

@ -79,7 +79,7 @@ sub check_options {
$self->{output}->add_option_msg(short_msg => "Wrong threshold-overload option '" . $val . "'.");
$self->{output}->option_exit();
}
my ($section, $status, $filter) = ('global', $2, $3);
my ($section, $status, $filter) = ('global', $1, $2);
if ($self->{output}->is_litteral_status(status => $status) == 0) {
$self->{output}->add_option_msg(short_msg => "Wrong threshold-overload status '" . $val . "'.");
$self->{output}->option_exit();