diff options
Diffstat (limited to 'plugins/check_mrtgtraf.d')
| -rw-r--r-- | plugins/check_mrtgtraf.d/config.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/check_mrtgtraf.d/config.h b/plugins/check_mrtgtraf.d/config.h new file mode 100644 index 00000000..d9737243 --- /dev/null +++ b/plugins/check_mrtgtraf.d/config.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../../config.h" | ||
| 4 | #include "output.h" | ||
| 5 | #include "thresholds.h" | ||
| 6 | #include <stddef.h> | ||
| 7 | #include <stdlib.h> | ||
| 8 | |||
| 9 | typedef struct { | ||
| 10 | char *log_file; | ||
| 11 | int expire_minutes; | ||
| 12 | bool use_average; | ||
| 13 | |||
| 14 | mp_thresholds incoming_thresholds; | ||
| 15 | mp_thresholds outgoing_thresholds; | ||
| 16 | |||
| 17 | bool output_format_is_set; | ||
| 18 | mp_output_format output_format; | ||
| 19 | } check_mrtgtraf_config; | ||
| 20 | |||
| 21 | check_mrtgtraf_config check_mrtgtraf_config_init() { | ||
| 22 | check_mrtgtraf_config tmp = { | ||
| 23 | .log_file = NULL, | ||
| 24 | .expire_minutes = -1, | ||
| 25 | .use_average = true, | ||
| 26 | |||
| 27 | .incoming_thresholds = mp_thresholds_init(), | ||
| 28 | .outgoing_thresholds = mp_thresholds_init(), | ||
| 29 | |||
| 30 | .output_format_is_set = false, | ||
| 31 | }; | ||
| 32 | return tmp; | ||
| 33 | } | ||
