diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-11 13:23:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 13:23:32 +0100 |
commit | eb31935abe12aee73178a1ce043f4979c885d158 (patch) | |
tree | 2228a152b13ca14635717d8a10df6280f2345a49 /plugins/check_mrtgraf.d/config.h | |
parent | d087a8820e03ad0b5aef0a904eb417aaca0699cb (diff) | |
parent | 67e41f1d57da40b6407da5434017d86abb7ae3bb (diff) | |
download | monitoring-plugins-eb31935abe12aee73178a1ce043f4979c885d158.tar.gz |
Merge pull request #2089 from RincewindsHat/refactor/check_mrtgraf
Refactor/check mrtgraf
Diffstat (limited to 'plugins/check_mrtgraf.d/config.h')
-rw-r--r-- | plugins/check_mrtgraf.d/config.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/check_mrtgraf.d/config.h b/plugins/check_mrtgraf.d/config.h new file mode 100644 index 00000000..6d949b50 --- /dev/null +++ b/plugins/check_mrtgraf.d/config.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "../../config.h" | ||
4 | #include <stddef.h> | ||
5 | #include <stdlib.h> | ||
6 | |||
7 | typedef struct { | ||
8 | char *log_file; | ||
9 | int expire_minutes; | ||
10 | bool use_average; | ||
11 | unsigned long incoming_warning_threshold; | ||
12 | unsigned long incoming_critical_threshold; | ||
13 | unsigned long outgoing_warning_threshold; | ||
14 | unsigned long outgoing_critical_threshold; | ||
15 | |||
16 | } check_mrtgraf_config; | ||
17 | |||
18 | check_mrtgraf_config check_mrtgraf_config_init() { | ||
19 | check_mrtgraf_config tmp = { | ||
20 | .log_file = NULL, | ||
21 | .expire_minutes = -1, | ||
22 | .use_average = true, | ||
23 | |||
24 | .incoming_warning_threshold = 0, | ||
25 | .incoming_critical_threshold = 0, | ||
26 | .outgoing_warning_threshold = 0, | ||
27 | .outgoing_critical_threshold = 0, | ||
28 | }; | ||
29 | return tmp; | ||
30 | } | ||