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

#include <stddef.h>
#include "../../lib/monitoringplug.h"

typedef struct check_ssh_config {
	int port;
	char *server_name;
	char *remote_version;
	char *remote_protocol;

	bool output_format_is_set;
	mp_output_format output_format;
} check_ssh_config;

check_ssh_config check_ssh_config_init(void) {
	check_ssh_config tmp = {
		.port = -1,
		.server_name = NULL,
		.remote_version = NULL,
		.remote_protocol = NULL,

		.output_format_is_set = false,
	};

	return tmp;
}