diff options
Diffstat (limited to 'plugins/check_ssh.d')
-rw-r--r-- | plugins/check_ssh.d/config.h | 4 |
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 | ||
6 | const int default_ssh_port = 22; | ||
7 | |||
6 | typedef struct check_ssh_config { | 8 | typedef 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 | ||
16 | check_ssh_config check_ssh_config_init(void) { | 18 | check_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, |