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-13 00:48:00 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-13 00:48:00 +0100
commit54a099ed6d4ae57835095083aa825462eb03f369 (patch)
treecf7af5c49f0c8ebc5574b0efc1af3871f1717357 /plugins/check_ssh.d/config.h
parent89df16e7503539c2b0da7e95375b470559bb94ec (diff)
parent02acc76edc5c646af90a6168df61c711aa3d11d6 (diff)
downloadmonitoring-plugins-54a099ed6d4ae57835095083aa825462eb03f369.tar.gz
Merge branch 'master' into refactor/check_tcp
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}