summaryrefslogtreecommitdiffstats
path: root/web/attachments/299119-check_http.diff
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/299119-check_http.diff
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/299119-check_http.diff')
-rw-r--r--web/attachments/299119-check_http.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/attachments/299119-check_http.diff b/web/attachments/299119-check_http.diff
new file mode 100644
index 0000000..e745e36
--- /dev/null
+++ b/web/attachments/299119-check_http.diff
@@ -0,0 +1,16 @@
1*** check_http.c_old 2008-10-27 08:52:54.000000000 +0000
2--- check_http.c 2008-10-27 08:54:15.000000000 +0000
3***************
4*** 968,974 ****
5--- 968,978 ----
6 else if (http_status >= 300) {
7
8 if (onredirect == STATE_DEPENDENT)
9+ {
10+ microsec = socket_timeout - deltime(tv)/1.0e6;
11+ alarm( microsec>1?microsec:1 );
12 redir (header, status_line);
13+ }
14 else if (onredirect == STATE_UNKNOWN)
15 printf (_("HTTP UNKNOWN"));
16 else if (onredirect == STATE_OK)