diff options
Diffstat (limited to 'plugins/check_ssh.d')
| -rw-r--r-- | plugins/check_ssh.d/config.h | 29 |
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 | |||
| 6 | const int default_ssh_port = 22; | ||
| 7 | |||
| 8 | typedef 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 | |||
| 18 | check_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 | } | ||
