diff options
Diffstat (limited to 'plugins/check_curl.d/config.h')
| -rw-r--r-- | plugins/check_curl.d/config.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/check_curl.d/config.h b/plugins/check_curl.d/config.h index f51b2ee9..bcdf3010 100644 --- a/plugins/check_curl.d/config.h +++ b/plugins/check_curl.d/config.h | |||
| @@ -48,6 +48,11 @@ typedef struct { | |||
| 48 | 48 | ||
| 49 | bool use_ssl; | 49 | bool use_ssl; |
| 50 | bool no_body; | 50 | bool no_body; |
| 51 | |||
| 52 | /* curl CURLOPT_PROXY option will be set to this value if not NULL */ | ||
| 53 | char *curlopt_proxy; | ||
| 54 | /* curl CURLOPT_NOPROXY option will be set to this value if not NULL */ | ||
| 55 | char *curlopt_noproxy; | ||
| 51 | } check_curl_working_state; | 56 | } check_curl_working_state; |
| 52 | 57 | ||
| 53 | check_curl_working_state check_curl_working_state_init(); | 58 | check_curl_working_state check_curl_working_state_init(); |
| @@ -57,14 +62,16 @@ typedef struct { | |||
| 57 | bool haproxy_protocol; | 62 | bool haproxy_protocol; |
| 58 | long socket_timeout; | 63 | long socket_timeout; |
| 59 | sa_family_t sin_family; | 64 | sa_family_t sin_family; |
| 60 | int curl_http_version; | 65 | long curl_http_version; |
| 61 | char **http_opt_headers; | 66 | char **http_opt_headers; |
| 62 | size_t http_opt_headers_count; | 67 | size_t http_opt_headers_count; |
| 63 | int ssl_version; | 68 | long ssl_version; |
| 64 | char *client_cert; | 69 | char *client_cert; |
| 65 | char *client_privkey; | 70 | char *client_privkey; |
| 66 | char *ca_cert; | 71 | char *ca_cert; |
| 67 | bool verify_peer_and_host; | 72 | bool verify_peer_and_host; |
| 73 | char proxy[DEFAULT_BUFFER_SIZE]; | ||
| 74 | char no_proxy[DEFAULT_BUFFER_SIZE]; | ||
| 68 | char user_agent[DEFAULT_BUFFER_SIZE]; | 75 | char user_agent[DEFAULT_BUFFER_SIZE]; |
| 69 | char proxy_auth[MAX_INPUT_BUFFER]; | 76 | char proxy_auth[MAX_INPUT_BUFFER]; |
| 70 | char user_auth[MAX_INPUT_BUFFER]; | 77 | char user_auth[MAX_INPUT_BUFFER]; |
| @@ -76,7 +83,7 @@ typedef struct { | |||
| 76 | check_curl_working_state initial_config; | 83 | check_curl_working_state initial_config; |
| 77 | 84 | ||
| 78 | check_curl_static_curl_config curl_config; | 85 | check_curl_static_curl_config curl_config; |
| 79 | int max_depth; | 86 | long max_depth; |
| 80 | int followmethod; | 87 | int followmethod; |
| 81 | int followsticky; | 88 | int followsticky; |
| 82 | 89 | ||
