diff options
author | Sven Nierlein <sven@nierlein.de> | 2021-07-08 09:31:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 09:31:56 (GMT) |
commit | e72ff300177593fb2f8c0426d4a0acc21c9c78e4 (patch) | |
tree | 6b581c23c454c20c0e0501d86ef6e2e94a4cf660 /plugins | |
parent | ed33dd37e7f1a6ab5a9185fcbe0e3c32c2c1a98a (diff) | |
parent | a1af8be9781ccdf36087a9e42fa18cfd468f1401 (diff) | |
download | monitoring-plugins-e72ff300177593fb2f8c0426d4a0acc21c9c78e4.tar.gz |
Merge pull request #1690 from xFuture603/change_state_from_infinite_redirect_loop
check_http: changed 'STATE_CRITICAL' to 'STATE_WARNING' for infinite loop
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 0b71266..34fb4f0 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -1453,8 +1453,8 @@ redir (char *pos, char *status_line) | |||
1453 | !strncmp(server_address, addr, MAX_IPV4_HOSTLENGTH) && | 1453 | !strncmp(server_address, addr, MAX_IPV4_HOSTLENGTH) && |
1454 | (host_name && !strncmp(host_name, addr, MAX_IPV4_HOSTLENGTH)) && | 1454 | (host_name && !strncmp(host_name, addr, MAX_IPV4_HOSTLENGTH)) && |
1455 | !strcmp(server_url, url)) | 1455 | !strcmp(server_url, url)) |
1456 | die (STATE_WARNING, | 1456 | die (STATE_CRITICAL, |
1457 | _("HTTP WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"), | 1457 | _("HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n"), |
1458 | type, addr, i, url, (display_html ? "</A>" : "")); | 1458 | type, addr, i, url, (display_html ? "</A>" : "")); |
1459 | 1459 | ||
1460 | strcpy (server_type, type); | 1460 | strcpy (server_type, type); |