Return CRITICAL when portal does not respond as expected

This commit is contained in:
CPbN 2019-04-07 17:12:40 +02:00
parent 431b2ef914
commit a68968b81c
1 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ sub build_options_for_httplib {
$self->{option_results}->{ssl_opt} = $self->{ssl_opt};
$self->{option_results}->{timeout} = $self->{timeout};
$self->{option_results}->{warning_status} = '';
$self->{option_results}->{critical_status} = '';
$self->{option_results}->{unknown_status} = '%{http_code} < 200 or %{http_code} >= 300';
$self->{option_results}->{critical_status} = '%{http_code} < 200 or %{http_code} >= 300';
$self->{option_results}->{unknown_status} = '';
}
sub settings {