diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-01-19 20:42:57 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2017-03-14 19:57:49 +0100 |
commit | 3de22e2dc38a098271b999581360d808f2e421da (patch) | |
tree | 2688d1643d60c00cc70ab0ad9585768897eb869f | |
parent | b7ba0e6f7425ebea3760b7c2134f029e9362ea33 (diff) | |
download | monitoring-plugins-3de22e2dc38a098271b999581360d808f2e421da.tar.gz |
fixed curl error message
-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 | ||