summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 89173808..7cb9745f 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -230,9 +230,8 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state
230 230
231 /* Curl errors, result in critical Nagios state */ 231 /* Curl errors, result in critical Nagios state */
232 if (res != CURLE_OK) { 232 if (res != CURLE_OK) {
233 xasprintf(&sc_curl.output, 233 xasprintf(&sc_curl.output, _("Error while performing connectiion: cURL returned %d - %s"),
234 _("Invalid HTTP response received from host on port %d: cURL returned %d - %s"), 234 res, errbuf[0] ? errbuf : curl_easy_strerror(res));
235 workingState.serverPort, res, errbuf[0] ? errbuf : curl_easy_strerror(res));
236 sc_curl = mp_set_subcheck_state(sc_curl, STATE_CRITICAL); 235 sc_curl = mp_set_subcheck_state(sc_curl, STATE_CRITICAL);
237 mp_add_subcheck_to_subcheck(&sc_result, sc_curl); 236 mp_add_subcheck_to_subcheck(&sc_result, sc_curl);
238 return sc_result; 237 return sc_result;