summaryrefslogtreecommitdiffstats
path: root/web/attachments/172575-nagios-plugins-1.4.check_http.patch
blob: f3c3b4dc0570070985657cb0b982ef7b73ba2395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)