diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-01-19 20:42:57 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 16:28:51 +0200 |
commit | c3bf9bd675fcbc04e748e01ab15f70546e9d641c (patch) | |
tree | 15b0c248031d117fd4c1bdc54b4d4fb1b7982bd8 /plugins/check_curl.c | |
parent | 67967df159843134654ca0e676e3514fba2d3705 (diff) | |
download | monitoring-plugins-c3bf9bd675fcbc04e748e01ab15f70546e9d641c.tar.gz |
fixed curl error message
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 4a62c1d2..8ef48d0c 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 | ||