summaryrefslogtreecommitdiffstats
path: root/web/attachments/172575-nagios-plugins-1.4.check_http.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/172575-nagios-plugins-1.4.check_http.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
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)