diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-07-14 23:35:52 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-07-14 23:35:52 +0200 |
commit | e570ce63634b57573aa84b12d84e7651d466a761 (patch) | |
tree | 6fb8bede4e3c60ef2be43c5630675c5d6275d180 /plugins/check_curl.d | |
parent | e855107eeb882d25ce777562d16886ea9aa2633e (diff) | |
download | monitoring-plugins-e570ce63634b57573aa84b12d84e7651d466a761.tar.gz |
check_curl: various small improvements
Diffstat (limited to 'plugins/check_curl.d')
-rw-r--r-- | plugins/check_curl.d/config.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_curl.d/config.h b/plugins/check_curl.d/config.h index 9085fbbb..90ea3810 100644 --- a/plugins/check_curl.d/config.h +++ b/plugins/check_curl.d/config.h | |||
@@ -48,7 +48,7 @@ typedef struct { | |||
48 | char *http_method; | 48 | char *http_method; |
49 | char user_agent[DEFAULT_BUFFER_SIZE]; | 49 | char user_agent[DEFAULT_BUFFER_SIZE]; |
50 | char **http_opt_headers; | 50 | char **http_opt_headers; |
51 | int http_opt_headers_count; | 51 | size_t http_opt_headers_count; |
52 | char *http_post_data; | 52 | char *http_post_data; |
53 | int max_depth; | 53 | int max_depth; |
54 | char *http_content_type; | 54 | char *http_content_type; |
@@ -63,7 +63,7 @@ typedef struct { | |||
63 | 63 | ||
64 | int maximum_age; | 64 | int maximum_age; |
65 | char regexp[MAX_RE_SIZE]; | 65 | char regexp[MAX_RE_SIZE]; |
66 | int state_regex; | 66 | mp_state_enum state_regex; |
67 | bool invert_regex; | 67 | bool invert_regex; |
68 | bool verify_peer_and_host; | 68 | bool verify_peer_and_host; |
69 | bool check_cert; | 69 | bool check_cert; |
@@ -71,13 +71,13 @@ typedef struct { | |||
71 | int days_till_exp_warn; | 71 | int days_till_exp_warn; |
72 | int days_till_exp_crit; | 72 | int days_till_exp_crit; |
73 | thresholds *thlds; | 73 | thresholds *thlds; |
74 | int min_page_len; | 74 | size_t min_page_len; |
75 | int max_page_len; | 75 | size_t max_page_len; |
76 | char server_expect[MAX_INPUT_BUFFER]; | 76 | char server_expect[MAX_INPUT_BUFFER]; |
77 | bool server_expect_yn; | 77 | bool server_expect_yn; |
78 | char string_expect[MAX_INPUT_BUFFER]; | 78 | char string_expect[MAX_INPUT_BUFFER]; |
79 | char header_expect[MAX_INPUT_BUFFER]; | 79 | char header_expect[MAX_INPUT_BUFFER]; |
80 | int onredirect; | 80 | mp_state_enum onredirect; |
81 | 81 | ||
82 | bool show_extended_perfdata; | 82 | bool show_extended_perfdata; |
83 | bool show_body; | 83 | bool show_body; |
@@ -100,7 +100,7 @@ check_curl_config check_curl_config_init() { | |||
100 | .use_ssl = false, | 100 | .use_ssl = false, |
101 | .ssl_version = CURL_SSLVERSION_DEFAULT, | 101 | .ssl_version = CURL_SSLVERSION_DEFAULT, |
102 | .http_method = NULL, | 102 | .http_method = NULL, |
103 | .user_agent = {}, | 103 | .user_agent = {'\0'}, |
104 | .http_opt_headers = NULL, | 104 | .http_opt_headers = NULL, |
105 | .http_opt_headers_count = 0, | 105 | .http_opt_headers_count = 0, |
106 | .http_post_data = NULL, | 106 | .http_post_data = NULL, |