summaryrefslogtreecommitdiffstats
path: root/plugins/check_mrtgtraf.d/config.h
blob: d97372435553f401bc720f2cdd138aa269d87757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

#include "../../config.h"
#include "output.h"
#include "thresholds.h"
#include <stddef.h>
#include <stdlib.h>

typedef struct {
	char *log_file;
	int expire_minutes;
	bool use_average;

	mp_thresholds incoming_thresholds;
	mp_thresholds outgoing_thresholds;

	bool output_format_is_set;
	mp_output_format output_format;
} check_mrtgtraf_config;

check_mrtgtraf_config check_mrtgtraf_config_init() {
	check_mrtgtraf_config tmp = {
		.log_file = NULL,
		.expire_minutes = -1,
		.use_average = true,

		.incoming_thresholds = mp_thresholds_init(),
		.outgoing_thresholds = mp_thresholds_init(),

		.output_format_is_set = false,
	};
	return tmp;
}