summaryrefslogtreecommitdiffstats
path: root/plugins/check_mrtgtraf.d/config.h
blob: 94929ff7d17a40ddc44122e92948685528b56a53 (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
#pragma once

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

typedef struct {
	char *log_file;
	int expire_minutes;
	bool use_average;
	unsigned long incoming_warning_threshold;
	unsigned long incoming_critical_threshold;
	unsigned long outgoing_warning_threshold;
	unsigned long outgoing_critical_threshold;

} check_mrtgtraf_config;

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

		.incoming_warning_threshold = 0,
		.incoming_critical_threshold = 0,
		.outgoing_warning_threshold = 0,
		.outgoing_critical_threshold = 0,
	};
	return tmp;
}