summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-09-15 01:57:40 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-09-15 01:57:40 +0200
commitf5f4a021a2760d553e3e4cdedd291eb815750369 (patch)
treed41b56d231c7e0c7b5b92aa4e90c20d95bf50cfb /plugins/check_curl.c
parentc15d12cbd5008de74dccd6f716e418feffed5560 (diff)
downloadmonitoring-plugins-f5f4a021a2760d553e3e4cdedd291eb815750369.tar.gz
Add new cert check function
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 680ecef7..b1021045 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -569,8 +569,9 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state
569 sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK); 569 sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK);
570 } 570 }
571 } else if (errcode == REG_NOMATCH) { 571 } else if (errcode == REG_NOMATCH) {
572 xasprintf(&sc_body_regex.output, "%s not", sc_body_regex.output);
573 // got no match 572 // got no match
573 xasprintf(&sc_body_regex.output, "%s not", sc_body_regex.output);
574
574 if (config.invert_regex) { 575 if (config.invert_regex) {
575 sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK); 576 sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK);
576 } else { 577 } else {