summaryrefslogtreecommitdiffstats
path: root/plugins/check_mrtg.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mrtg.d')
-rw-r--r--plugins/check_mrtg.d/config.h37
1 files changed, 37 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..4a5b5595
--- /dev/null
+++ b/plugins/check_mrtg.d/config.h
@@ -0,0 +1,37 @@
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
9typedef struct {
10 bool use_average;
11 int variable_number;
12 int expire_minutes;
13 char *label;
14 char *units;
15 char *log_file;
16
17 mp_thresholds values_threshold;
18
19 bool output_format_is_set;
20 mp_output_format output_format;
21} check_mrtg_config;
22
23check_mrtg_config check_mrtg_config_init() {
24 check_mrtg_config tmp = {
25 .use_average = true,
26 .variable_number = -1,
27 .expire_minutes = 0,
28 .label = NULL,
29 .units = NULL,
30 .log_file = NULL,
31
32 .values_threshold = mp_thresholds_init(),
33
34 .output_format_is_set = false,
35 };
36 return tmp;
37}