mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
+ Fix global-status check
This commit is contained in:
parent
45c9c0a3a7
commit
3062172845
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user