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/281911-check_http.c.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/attachments/281911-check_http.c.diff (limited to 'web/attachments/281911-check_http.c.diff') 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 @@ +--- 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); + } + -- cgit v1.2.3-74-g34f1