summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-25 10:14:29 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-07 23:38:50 +0100
commitc87bc7eee4b83571199ffd14b70bfca5418ec101 (patch)
treea0d08f571c3549140548a885bf0a969cb9ff5dba /plugins/check_ssh.d
parentfb4f46f93da4ac50654fdcc2f26b2f37c73a9230 (diff)
downloadmonitoring-plugins-c87bc7eee4b83571199ffd14b70bfca5418ec101.tar.gz
check_ssh: centralize configuration in external header
Diffstat (limited to 'plugins/check_ssh.d')
-rw-r--r--plugins/check_ssh.d/config.h21
1 files changed, 21 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..05698d83
--- /dev/null
+++ b/plugins/check_ssh.d/config.h
@@ -0,0 +1,21 @@
1#pragma once
2
3#include <stddef.h>
4
5typedef struct check_ssh_config {
6 int port;
7 char *server_name;
8 char *remote_version;
9 char *remote_protocol;
10} check_ssh_config;
11
12check_ssh_config check_ssh_config_init(void) {
13 check_ssh_config tmp = {
14 .port = -1,
15 .server_name = NULL,
16 .remote_version = NULL,
17 .remote_protocol = NULL,
18 };
19
20 return tmp;
21}