diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-09 11:35:03 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-09 11:35:03 +0100 |
commit | 95311d2e2c03d94f6bae0cacbac75fc1cd25b0e4 (patch) | |
tree | 960c12b0c7e87c508bcfcea2a99eec6fe34b03ee /plugins/check_ssh.d/config.h | |
parent | e3d2fccade397bbd6b318495192b4ca346becef0 (diff) | |
parent | 6dbc84f93595be81aee4de4ac3122b942047c22d (diff) | |
download | monitoring-plugins-95311d2e2c03d94f6bae0cacbac75fc1cd25b0e4.tar.gz |
Merge branch 'master' into refactor/check_game
Diffstat (limited to 'plugins/check_ssh.d/config.h')
-rw-r--r-- | plugins/check_ssh.d/config.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/check_ssh.d/config.h b/plugins/check_ssh.d/config.h new file mode 100644 index 00000000..c150fd30 --- /dev/null +++ b/plugins/check_ssh.d/config.h | |||
@@ -0,0 +1,29 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <stddef.h> | ||
4 | #include "../../lib/monitoringplug.h" | ||
5 | |||
6 | const int default_ssh_port = 22; | ||
7 | |||
8 | typedef struct check_ssh_config { | ||
9 | int port; | ||
10 | char *server_name; | ||
11 | char *remote_version; | ||
12 | char *remote_protocol; | ||
13 | |||
14 | bool output_format_is_set; | ||
15 | mp_output_format output_format; | ||
16 | } check_ssh_config; | ||
17 | |||
18 | check_ssh_config check_ssh_config_init(void) { | ||
19 | check_ssh_config tmp = { | ||
20 | .port = default_ssh_port, | ||
21 | .server_name = NULL, | ||
22 | .remote_version = NULL, | ||
23 | .remote_protocol = NULL, | ||
24 | |||
25 | .output_format_is_set = false, | ||
26 | }; | ||
27 | |||
28 | return tmp; | ||
29 | } | ||