summaryrefslogtreecommitdiffstats
path: root/web/attachments/281911-check_http.c.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/281911-check_http.c.diff')
-rw-r--r--web/attachments/281911-check_http.c.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/web/attachments/281911-check_http.c.diff b/web/attachments/281911-check_http.c.diff
new file mode 100644
index 0000000..a29dd37
--- /dev/null
+++ b/web/attachments/281911-check_http.c.diff
@@ -0,0 +1,18 @@
1--- check_http.c~ 2008-06-19 11:42:25.000000000 +0200
2+++ check_http.c 2008-06-19 11:42:25.000000000 +0200
3@@ -912,11 +912,12 @@
4 if (!strstr (status_line, server_expect)) {
5 if (server_port == HTTP_PORT)
6 asprintf (&msg,
7- _("Invalid HTTP response received from host\n"));
8+ _("Invalid HTTP response received from host: %s\n"),
9+ status_line);
10 else
11 asprintf (&msg,
12- _("Invalid HTTP response received from host on port %d\n"),
13- server_port);
14+ _("Invalid HTTP response received from host on port %d: %s\n"),
15+ server_port, status_line);
16 die (STATE_CRITICAL, "%s", msg);
17 }
18