summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_curl.d')
-rw-r--r--plugins/check_curl.d/check_curl_helpers.c2
-rw-r--r--plugins/check_curl.d/config.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/check_curl.d/check_curl_helpers.c b/plugins/check_curl.d/check_curl_helpers.c
index ab43a1e1..c3c2ba55 100644
--- a/plugins/check_curl.d/check_curl_helpers.c
+++ b/plugins/check_curl.d/check_curl_helpers.c
@@ -632,6 +632,8 @@ check_curl_config check_curl_config_init() {
632 632
633 .show_extended_perfdata = false, 633 .show_extended_perfdata = false,
634 .show_body = false, 634 .show_body = false,
635
636 .output_format_is_set = false,
635 }; 637 };
636 638
637 snprintf(tmp.curl_config.user_agent, DEFAULT_BUFFER_SIZE, "%s/v%s (monitoring-plugins %s, %s)", 639 snprintf(tmp.curl_config.user_agent, DEFAULT_BUFFER_SIZE, "%s/v%s (monitoring-plugins %s, %s)",
diff --git a/plugins/check_curl.d/config.h b/plugins/check_curl.d/config.h
index 6100af3e..f51b2ee9 100644
--- a/plugins/check_curl.d/config.h
+++ b/plugins/check_curl.d/config.h
@@ -108,6 +108,9 @@ typedef struct {
108 108
109 bool show_extended_perfdata; 109 bool show_extended_perfdata;
110 bool show_body; 110 bool show_body;
111
112 bool output_format_is_set;
113 mp_output_format output_format;
111} check_curl_config; 114} check_curl_config;
112 115
113check_curl_config check_curl_config_init(); 116check_curl_config check_curl_config_init();