diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-01-19 19:42:57 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 14:28:51 (GMT) |
commit | c3bf9bd675fcbc04e748e01ab15f70546e9d641c (patch) | |
tree | 15b0c248031d117fd4c1bdc54b4d4fb1b7982bd8 /plugins | |
parent | 67967df159843134654ca0e676e3514fba2d3705 (diff) | |
download | monitoring-plugins-c3bf9bd675fcbc04e748e01ab15f70546e9d641c.tar.gz |
fixed curl error message
Diffstat (limited to 'plugins')
-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 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 | ||