diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 13:00:05 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 13:00:05 +0100 |
commit | 285000a2ad1198046275f5bd5b47227f1cd66471 (patch) | |
tree | ce65a1663d1a6ad97529a2db60ef6d31fbf3fcdc /plugins | |
parent | 44211a672959494849476c45ff761181e62762ff (diff) | |
download | monitoring-plugins-285000a2ad1198046275f5bd5b47227f1cd66471.tar.gz |
small fixes to check_tcp config
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_tcp.d/config.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/check_tcp.d/config.h b/plugins/check_tcp.d/config.h index 41db7224..dc25d79e 100644 --- a/plugins/check_tcp.d/config.h +++ b/plugins/check_tcp.d/config.h | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | #include "../../lib/utils_tcp.h" | 3 | #include "../../lib/utils_tcp.h" |
4 | #include "output.h" | 4 | #include "output.h" |
5 | #include "states.h" | ||
5 | #include <netinet/in.h> | 6 | #include <netinet/in.h> |
6 | 7 | ||
7 | typedef struct { | 8 | typedef struct { |
@@ -15,8 +16,8 @@ typedef struct { | |||
15 | char *quit; | 16 | char *quit; |
16 | char **server_expect; | 17 | char **server_expect; |
17 | size_t server_expect_count; | 18 | size_t server_expect_count; |
18 | #ifdef HAVE_SSL | ||
19 | bool use_tls; | 19 | bool use_tls; |
20 | #ifdef HAVE_SSL | ||
20 | char *sni; | 21 | char *sni; |
21 | bool sni_specified; | 22 | bool sni_specified; |
22 | bool check_cert; | 23 | bool check_cert; |
@@ -24,7 +25,7 @@ typedef struct { | |||
24 | int days_till_exp_crit; | 25 | int days_till_exp_crit; |
25 | #endif // HAVE_SSL | 26 | #endif // HAVE_SSL |
26 | int match_flags; | 27 | int match_flags; |
27 | int expect_mismatch_state; | 28 | mp_state_enum expect_mismatch_state; |
28 | unsigned int delay; | 29 | unsigned int delay; |
29 | 30 | ||
30 | bool warning_time_set; | 31 | bool warning_time_set; |
@@ -32,7 +33,7 @@ typedef struct { | |||
32 | bool critical_time_set; | 33 | bool critical_time_set; |
33 | double critical_time; | 34 | double critical_time; |
34 | 35 | ||
35 | int econn_refuse_state; | 36 | mp_state_enum econn_refuse_state; |
36 | 37 | ||
37 | ssize_t maxbytes; | 38 | ssize_t maxbytes; |
38 | 39 | ||
@@ -54,8 +55,8 @@ check_tcp_config check_tcp_config_init() { | |||
54 | .quit = NULL, | 55 | .quit = NULL, |
55 | .server_expect = NULL, | 56 | .server_expect = NULL, |
56 | .server_expect_count = 0, | 57 | .server_expect_count = 0, |
57 | #ifdef HAVE_SSL | ||
58 | .use_tls = false, | 58 | .use_tls = false, |
59 | #ifdef HAVE_SSL | ||
59 | .sni = NULL, | 60 | .sni = NULL, |
60 | .sni_specified = false, | 61 | .sni_specified = false, |
61 | .check_cert = false, | 62 | .check_cert = false, |