summaryrefslogtreecommitdiffstats
path: root/web/attachments/172575-nagios-plugins-1.4.check_http.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/172575-nagios-plugins-1.4.check_http.patch')
-rw-r--r--web/attachments/172575-nagios-plugins-1.4.check_http.patch18
1 files changed, 18 insertions, 0 deletions
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 @@
1--- nagios-plugins-1.4.orig/plugins/check_http.c 2006-03-28 16:19:02.000000000 -0500
2+++ nagios-plugins-1.4/plugins/check_http.c 2006-03-28 17:08:22.000000000 -0500
3@@ -989,14 +989,12 @@
4 die (STATE_WARNING, _("HTTP WARNING: %s\n"), status_line);
5
6 /* check redirected page if specified */
7- else if (http_status >= 300) {
8+ else if (http_status >= 300 && onredirect != STATE_OK) {
9
10 if (onredirect == STATE_DEPENDENT)
11 redir (header, status_line);
12 else if (onredirect == STATE_UNKNOWN)
13 printf (_("UNKNOWN"));
14- else if (onredirect == STATE_OK)
15- printf (_("OK"));
16 else if (onredirect == STATE_WARNING)
17 printf (_("WARNING"));
18 else if (onredirect == STATE_CRITICAL)