summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-09 11:32:40 +0100
committerGitHub <noreply@github.com>2025-03-09 11:32:40 +0100
commit6dbc84f93595be81aee4de4ac3122b942047c22d (patch)
tree885f684a971bdc9dcc9fb608454660ff343f6704 /plugins/check_ssh.d
parent1d55c2279731766a837b4973f3da79b3e3a6bd90 (diff)
parent0426b8947d9e03375219074c3741616599651db4 (diff)
downloadmonitoring-plugins-6dbc84f93595be81aee4de4ac3122b942047c22d.tar.gz
Merge pull request #2071 from RincewindsHat/refactor/check_ssh
Refactor/check ssh
Diffstat (limited to 'plugins/check_ssh.d')
-rw-r--r--plugins/check_ssh.d/config.h29
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
6const int default_ssh_port = 22;
7
8typedef 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
18check_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}