summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 4a62c1d..8ef48d0 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -268,8 +268,8 @@ main (int argc, char **argv)
268 /* Curl errors, result in critical Nagios state */ 268 /* Curl errors, result in critical Nagios state */
269 if (res != CURLE_OK) { 269 if (res != CURLE_OK) {
270 remove_newlines (errbuf); 270 remove_newlines (errbuf);
271 snprintf (msg, DEFAULT_BUFFER_SIZE, _("Invalid HTTP response received from host on port %d: %s\n"), 271 snprintf (msg, DEFAULT_BUFFER_SIZE, _("Invalid HTTP response received from host on port %d: cURL returned %d - %s\n"),
272 server_port, status_line.msg, status_line.msg); 272 server_port, res, curl_easy_strerror(res));
273 die (STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg); 273 die (STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg);
274 } 274 }
275 275