summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.d
diff options
context:
space:
mode:
authorinqrphl <32687873+inqrphl@users.noreply.github.com>2026-05-19 16:01:43 +0200
committerGitHub <noreply@github.com>2026-05-19 16:01:43 +0200
commit178e9a02e367ab4527129ddbc623401e245d00b2 (patch)
treee4655ece4741fea367bc82f25b66912a1b704016 /plugins/check_curl.d
parent5ccce854954e807e51966b3db9388bf20284b949 (diff)
downloadmonitoring-plugins-178e9a02e367ab4527129ddbc623401e245d00b2.tar.gz
check_http and check_curl: custom timeout return state (#2266)HEADmaster
check_curl + check_http: hdd cli argument to return custom states on timeout --------- Co-authored-by: Ahmet Oeztuerk <Ahmet.Oeztuerk@consol.de>
Diffstat (limited to 'plugins/check_curl.d')
-rw-r--r--plugins/check_curl.d/check_curl_helpers.c1
-rw-r--r--plugins/check_curl.d/config.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_curl.d/check_curl_helpers.c b/plugins/check_curl.d/check_curl_helpers.c
index 80d6f4f6..5b13a138 100644
--- a/plugins/check_curl.d/check_curl_helpers.c
+++ b/plugins/check_curl.d/check_curl_helpers.c
@@ -755,6 +755,7 @@ check_curl_config check_curl_config_init(void) {
755 .header_expect = "", 755 .header_expect = "",
756 .on_redirect_result_state = STATE_OK, 756 .on_redirect_result_state = STATE_OK,
757 .on_redirect_dependent = false, 757 .on_redirect_dependent = false,
758 .on_timeout_result_state = STATE_CRITICAL,
758 759
759 .show_extended_perfdata = false, 760 .show_extended_perfdata = false,
760 .show_body = false, 761 .show_body = false,
diff --git a/plugins/check_curl.d/config.h b/plugins/check_curl.d/config.h
index bcdf3010..0a7fa01d 100644
--- a/plugins/check_curl.d/config.h
+++ b/plugins/check_curl.d/config.h
@@ -113,9 +113,12 @@ typedef struct {
113 mp_state_enum on_redirect_result_state; 113 mp_state_enum on_redirect_result_state;
114 bool on_redirect_dependent; 114 bool on_redirect_dependent;
115 115
116 mp_state_enum on_timeout_result_state;
117
116 bool show_extended_perfdata; 118 bool show_extended_perfdata;
117 bool show_body; 119 bool show_body;
118 120
121
119 bool output_format_is_set; 122 bool output_format_is_set;
120 mp_output_format output_format; 123 mp_output_format output_format;
121} check_curl_config; 124} check_curl_config;