diff options
Diffstat (limited to 'plugins/check_cluster.d/config.h')
-rw-r--r-- | plugins/check_cluster.d/config.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/check_cluster.d/config.h b/plugins/check_cluster.d/config.h new file mode 100644 index 00000000..054657b0 --- /dev/null +++ b/plugins/check_cluster.d/config.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "../../config.h" | ||
4 | #include "../../lib/thresholds.h" | ||
5 | #include "output.h" | ||
6 | #include <stddef.h> | ||
7 | |||
8 | enum { | ||
9 | CHECK_SERVICES = 1, | ||
10 | CHECK_HOSTS = 2 | ||
11 | }; | ||
12 | |||
13 | typedef struct { | ||
14 | char *data_vals; | ||
15 | thresholds *thresholds; | ||
16 | int check_type; | ||
17 | char *label; | ||
18 | |||
19 | mp_output_format output_format; | ||
20 | bool output_format_is_set; | ||
21 | } check_cluster_config; | ||
22 | |||
23 | check_cluster_config check_cluster_config_init() { | ||
24 | check_cluster_config tmp = { | ||
25 | .data_vals = NULL, | ||
26 | .thresholds = NULL, | ||
27 | .check_type = CHECK_SERVICES, | ||
28 | .label = NULL, | ||
29 | |||
30 | .output_format_is_set = false, | ||
31 | }; | ||
32 | return tmp; | ||
33 | } | ||