summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.d/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_by_ssh.d/config.h')
-rw-r--r--plugins/check_by_ssh.d/config.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/plugins/check_by_ssh.d/config.h b/plugins/check_by_ssh.d/config.h
new file mode 100644
index 00000000..0e4b56d4
--- /dev/null
+++ b/plugins/check_by_ssh.d/config.h
@@ -0,0 +1,58 @@
1#pragma once
2
3#include "../../config.h"
4#include <stddef.h>
5
6typedef struct {
7 int commargc;
8 char **commargv;
9} command_construct;
10
11typedef struct {
12 char *hostname;
13 char *host_shortname;
14
15 char **service;
16 unsigned int number_of_services;
17
18 unsigned int commands; // Not needed during actual test run
19 char *remotecmd;
20
21 command_construct cmd;
22
23 bool unknown_timeout;
24 bool unknown_on_stderr;
25 bool warn_on_stderr;
26 int skip_stdout;
27 int skip_stderr;
28 bool passive;
29 char *outputfile;
30} check_by_ssh_config;
31
32check_by_ssh_config check_by_ssh_config_init() {
33 check_by_ssh_config tmp = {
34 .hostname = NULL,
35 .host_shortname = NULL,
36
37 .service = NULL,
38 .number_of_services = 0,
39
40 .commands = 0,
41 .remotecmd = "",
42
43 .cmd =
44 {
45 .commargc = 0,
46 .commargv = NULL,
47 },
48
49 .unknown_timeout = false,
50 .unknown_on_stderr = false,
51 .warn_on_stderr = false,
52 .skip_stderr = 0,
53 .skip_stdout = 0,
54 .passive = false,
55 .outputfile = NULL,
56 };
57 return tmp;
58}