summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.d/config.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-09 12:44:44 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-09 12:44:44 +0100
commit66b1997e0529bf3461982672c458b3c0c4f1d129 (patch)
tree1650d36bb89c385f7be23e514dcb5cd80297c8e0 /plugins/check_ssh.d/config.h
parent8b8ce8a6055664b8db2156093fd6afa9cfa1c42f (diff)
parent6dbc84f93595be81aee4de4ac3122b942047c22d (diff)
downloadmonitoring-plugins-66b1997e0529bf3461982672c458b3c0c4f1d129.tar.gz
Merge branch 'master' into refactor/check_dns
Diffstat (limited to 'plugins/check_ssh.d/config.h')
-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}