[monitoring-plugins] changed 'STATE_CRITICAL' to 'STATE_WARNING' for ...

Daniel Uhlmann git at monitoring-plugins.org
Thu Jul 8 11:40:11 CEST 2021


 Module: monitoring-plugins
 Branch: master
 Commit: a1af8be9781ccdf36087a9e42fa18cfd468f1401
 Author: Daniel Uhlmann <daniel.uhlmann at t-systems.com>
   Date: Thu Jun 24 11:37:14 2021 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a1af8be

changed 'STATE_CRITICAL' to 'STATE_WARNING' for infinite loop

---

 plugins/check_http.c | 4 ++--
 1 file 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)
       !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);



More information about the Commits mailing list