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:26:36 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-07 23:38:50 +0100
commited06df7f34ad72439b2a0ebb0c0e527d2435050a (patch)
tree4b04a076e511b471a61417d7dbf12a8a27b93b1f /plugins/check_ssh.d
parentc87bc7eee4b83571199ffd14b70bfca5418ec101 (diff)
downloadmonitoring-plugins-ed06df7f34ad72439b2a0ebb0c0e527d2435050a.tar.gz
check_ssh: Migrate to new output infrastructure
Diffstat (limited to 'plugins/check_ssh.d')
-rw-r--r--plugins/check_ssh.d/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_ssh.d/config.h b/plugins/check_ssh.d/config.h
index 05698d83..d739c57c 100644
--- a/plugins/check_ssh.d/config.h
+++ b/plugins/check_ssh.d/config.h
@@ -1,12 +1,16 @@
1#pragma once 1#pragma once
2 2
3#include <stddef.h> 3#include <stddef.h>
4#include "../../lib/monitoringplug.h"
4 5
5typedef struct check_ssh_config { 6typedef struct check_ssh_config {
6 int port; 7 int port;
7 char *server_name; 8 char *server_name;
8 char *remote_version; 9 char *remote_version;
9 char *remote_protocol; 10 char *remote_protocol;
11
12 bool output_format_is_set;
13 mp_output_format output_format;
10} check_ssh_config; 14} check_ssh_config;
11 15
12check_ssh_config check_ssh_config_init(void) { 16check_ssh_config check_ssh_config_init(void) {
@@ -15,6 +19,8 @@ check_ssh_config check_ssh_config_init(void) {
15 .server_name = NULL, 19 .server_name = NULL,
16 .remote_version = NULL, 20 .remote_version = NULL,
17 .remote_protocol = NULL, 21 .remote_protocol = NULL,
22
23 .output_format_is_set = false,
18 }; 24 };
19 25
20 return tmp; 26 return tmp;