diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-11 12:55:36 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-11 12:55:36 +0100 |
| commit | 67e41f1d57da40b6407da5434017d86abb7ae3bb (patch) | |
| tree | 2228a152b13ca14635717d8a10df6280f2345a49 /plugins/check_mrtg.d | |
| parent | 94f81f6fc78003d4f6f7d75789e3c4b364747d8b (diff) | |
| parent | d087a8820e03ad0b5aef0a904eb417aaca0699cb (diff) | |
| download | monitoring-plugins-67e41f1d57da40b6407da5434017d86abb7ae3bb.tar.gz | |
Merge branch 'master' into refactor/check_mrtgraf
Diffstat (limited to 'plugins/check_mrtg.d')
| -rw-r--r-- | plugins/check_mrtg.d/config.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/check_mrtg.d/config.h b/plugins/check_mrtg.d/config.h new file mode 100644 index 00000000..96b849a2 --- /dev/null +++ b/plugins/check_mrtg.d/config.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../../config.h" | ||
| 4 | #include <stddef.h> | ||
| 5 | #include <stdlib.h> | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | bool use_average; | ||
| 9 | int variable_number; | ||
| 10 | int expire_minutes; | ||
| 11 | char *label; | ||
| 12 | char *units; | ||
| 13 | char *log_file; | ||
| 14 | |||
| 15 | bool value_warning_threshold_set; | ||
| 16 | unsigned long value_warning_threshold; | ||
| 17 | bool value_critical_threshold_set; | ||
| 18 | unsigned long value_critical_threshold; | ||
| 19 | } check_mrtg_config; | ||
| 20 | |||
| 21 | check_mrtg_config check_mrtg_config_init() { | ||
| 22 | check_mrtg_config tmp = { | ||
| 23 | .use_average = true, | ||
| 24 | .variable_number = -1, | ||
| 25 | .expire_minutes = 0, | ||
| 26 | .label = NULL, | ||
| 27 | .units = NULL, | ||
| 28 | .log_file = NULL, | ||
| 29 | |||
| 30 | .value_warning_threshold_set = false, | ||
| 31 | .value_warning_threshold = 0, | ||
| 32 | .value_critical_threshold_set = false, | ||
| 33 | .value_critical_threshold = 0, | ||
| 34 | }; | ||
| 35 | return tmp; | ||
| 36 | } | ||
