summaryrefslogtreecommitdiffstats
path: root/web/attachments/281911-check_http.c.diff
blob: a29dd376db4aaed145f09b0fe9b9a8964fe3f970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- check_http.c~	2008-06-19 11:42:25.000000000 +0200
+++ check_http.c	2008-06-19 11:42:25.000000000 +0200
@@ -912,11 +912,12 @@
   if (!strstr (status_line, server_expect)) {
     if (server_port == HTTP_PORT)
       asprintf (&msg,
-                _("Invalid HTTP response received from host\n"));
+                _("Invalid HTTP response received from host: %s\n"),
+                status_line);
     else
       asprintf (&msg,
-                _("Invalid HTTP response received from host on port %d\n"),
-                server_port);
+                _("Invalid HTTP response received from host on port %d: %s\n"),
+                server_port, status_line);
     die (STATE_CRITICAL, "%s", msg);
   }