aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andreas Baumann <mail@andreasbaumann.cc> 2021-07-04 18:43:42 +0200
committerGravatar Andreas Baumann <mail@andreasbaumann.cc> 2021-07-04 18:43:42 +0200
commit6e696643a5701ddd18945593743286b35b5944cb (patch)
tree9af021cde53d554fc822af078694ca11824ce4ea
parent0b6838ffcaf372df419059771dd42f1bd69644c0 (diff)
downloadmonitoring-plugins-6e696643a5701ddd18945593743286b35b5944cb.tar.gz
check_curl: changed to STATE_CRITICAL for infinite loops (-ffollow)
-rw-r--r--plugins/check_curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index daf64b0b..ba08c36b 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1106,8 +1106,8 @@ redir (curlhelp_write_curlbuf* header_buf)
!strncmp(server_address, new_host, MAX_IPV4_HOSTLENGTH) &&
(host_name && !strncmp(host_name, new_host, MAX_IPV4_HOSTLENGTH)) &&
!strcmp(server_url, new_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"),
use_ssl ? "https" : "http", new_host, new_port, new_url, (display_html ? "</A>" : ""));
/* set new values for redirected request */