Merge pull request #1690 from xFuture603/change_state_from_infinite_redirect_loop

check_http: changed 'STATE_CRITICAL' to 'STATE_WARNING' for infinite loop
This commit is contained in:
Sven Nierlein 2021-07-08 11:31:56 +02:00 committed by GitHub
commit e72ff30017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1453,8 +1453,8 @@ redir (char *pos, char *status_line)
!strncmp(server_address, addr, MAX_IPV4_HOSTLENGTH) &&
(host_name && !strncmp(host_name, addr, MAX_IPV4_HOSTLENGTH)) &&
!strcmp(server_url, url))
die (STATE_WARNING,
_("HTTP WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"),
die (STATE_CRITICAL,
_("HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n"),
type, addr, i, url, (display_html ? "</A>" : ""));
strcpy (server_type, type);