diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 01:57:40 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 01:57:40 +0200 |
commit | f5f4a021a2760d553e3e4cdedd291eb815750369 (patch) | |
tree | d41b56d231c7e0c7b5b92aa4e90c20d95bf50cfb /plugins/check_curl.c | |
parent | c15d12cbd5008de74dccd6f716e418feffed5560 (diff) | |
download | monitoring-plugins-f5f4a021a2760d553e3e4cdedd291eb815750369.tar.gz |
Add new cert check function
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 3 |
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 { |