summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-25 11:32:18 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-07 23:38:50 +0100
commitadd5bfb1e4029e406f7f331407c9d0f28d6d789b (patch)
treeb8833d0ab3506c0308ad2105ab8d521d9affbc6d /plugins/check_ssh.d
parent5ee9a5eadd7c9252fc4deb6cc502535d8e0e49d5 (diff)
downloadmonitoring-plugins-add5bfb1e4029e406f7f331407c9d0f28d6d789b.tar.gz
check_ssh: Move default SSH constant around a bit
Diffstat (limited to 'plugins/check_ssh.d')
-rw-r--r--plugins/check_ssh.d/config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_ssh.d/config.h b/plugins/check_ssh.d/config.h
index d739c57c..c150fd30 100644
--- a/plugins/check_ssh.d/config.h
+++ b/plugins/check_ssh.d/config.h
@@ -3,6 +3,8 @@
3#include <stddef.h> 3#include <stddef.h>
4#include "../../lib/monitoringplug.h" 4#include "../../lib/monitoringplug.h"
5 5
6const int default_ssh_port = 22;
7
6typedef struct check_ssh_config { 8typedef struct check_ssh_config {
7 int port; 9 int port;
8 char *server_name; 10 char *server_name;
@@ -15,7 +17,7 @@ typedef struct check_ssh_config {
15 17
16check_ssh_config check_ssh_config_init(void) { 18check_ssh_config check_ssh_config_init(void) {
17 check_ssh_config tmp = { 19 check_ssh_config tmp = {
18 .port = -1, 20 .port = default_ssh_port,
19 .server_name = NULL, 21 .server_name = NULL,
20 .remote_version = NULL, 22 .remote_version = NULL,
21 .remote_protocol = NULL, 23 .remote_protocol = NULL,