From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- .../172575-nagios-plugins-1.4.check_http.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/attachments/172575-nagios-plugins-1.4.check_http.patch (limited to 'web/attachments/172575-nagios-plugins-1.4.check_http.patch') diff --git a/web/attachments/172575-nagios-plugins-1.4.check_http.patch b/web/attachments/172575-nagios-plugins-1.4.check_http.patch new file mode 100644 index 0000000..f3c3b4d --- /dev/null +++ b/web/attachments/172575-nagios-plugins-1.4.check_http.patch @@ -0,0 +1,18 @@ +--- nagios-plugins-1.4.orig/plugins/check_http.c 2006-03-28 16:19:02.000000000 -0500 ++++ nagios-plugins-1.4/plugins/check_http.c 2006-03-28 17:08:22.000000000 -0500 +@@ -989,14 +989,12 @@ + die (STATE_WARNING, _("HTTP WARNING: %s\n"), status_line); + + /* check redirected page if specified */ +- else if (http_status >= 300) { ++ else if (http_status >= 300 && onredirect != STATE_OK) { + + if (onredirect == STATE_DEPENDENT) + redir (header, status_line); + else if (onredirect == STATE_UNKNOWN) + printf (_("UNKNOWN")); +- else if (onredirect == STATE_OK) +- printf (_("OK")); + else if (onredirect == STATE_WARNING) + printf (_("WARNING")); + else if (onredirect == STATE_CRITICAL) -- cgit v1.2.3-74-g34f1