summaryrefslogtreecommitdiffstats
path: root/plugins/check_real.d/config.h
blob: c4663cf9f406f50757afeb02d6b0e815feb01c7d (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
34
35
36
37
#pragma once

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

enum {
	PORT = 554
};

typedef struct {
	char *server_address;
	char *host_name;
	int server_port;
	char *server_url;

	char *server_expect;
	int warning_time;
	bool check_warning_time;
	int critical_time;
	bool check_critical_time;
} check_real_config;

check_real_config check_real_config_init() {
	check_real_config tmp = {
		.server_address = NULL,
		.host_name = NULL,
		.server_port = PORT,
		.server_url = NULL,

		.server_expect = NULL,
		.warning_time = 0,
		.check_warning_time = false,
		.critical_time = 0,
		.check_critical_time = false,
	};
	return tmp;
}