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. --- web/attachments/299119-check_http.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/attachments/299119-check_http.diff (limited to 'web/attachments/299119-check_http.diff') 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 @@ +*** check_http.c_old 2008-10-27 08:52:54.000000000 +0000 +--- check_http.c 2008-10-27 08:54:15.000000000 +0000 +*************** +*** 968,974 **** +--- 968,978 ---- + else if (http_status >= 300) { + + if (onredirect == STATE_DEPENDENT) ++ { ++ microsec = socket_timeout - deltime(tv)/1.0e6; ++ alarm( microsec>1?microsec:1 ); + redir (header, status_line); ++ } + else if (onredirect == STATE_UNKNOWN) + printf (_("HTTP UNKNOWN")); + else if (onredirect == STATE_OK) -- cgit v1.2.3-74-g34f1