From e77ce530c44178521b7e0c4012feed1e8006e41e Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 16 Nov 2025 14:32:03 +0100 Subject: check_by_ssh: Implement modern output functionality --- plugins/check_by_ssh.d/config.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'plugins/check_by_ssh.d/config.h') diff --git a/plugins/check_by_ssh.d/config.h b/plugins/check_by_ssh.d/config.h index 0e4b56d4..b6a57964 100644 --- a/plugins/check_by_ssh.d/config.h +++ b/plugins/check_by_ssh.d/config.h @@ -1,6 +1,7 @@ #pragma once #include "../../config.h" +#include "output.h" #include typedef struct { @@ -23,10 +24,16 @@ typedef struct { bool unknown_timeout; bool unknown_on_stderr; bool warn_on_stderr; - int skip_stdout; - int skip_stderr; + bool skip_stdout; + size_t stdout_lines_to_ignore; + bool skip_stderr; + size_t sterr_lines_to_ignore; + bool passive; char *outputfile; + + bool output_format_is_set; + mp_output_format output_format; } check_by_ssh_config; check_by_ssh_config check_by_ssh_config_init() { @@ -49,10 +56,16 @@ check_by_ssh_config check_by_ssh_config_init() { .unknown_timeout = false, .unknown_on_stderr = false, .warn_on_stderr = false, - .skip_stderr = 0, - .skip_stdout = 0, + + .skip_stderr = false, + .stdout_lines_to_ignore = 0, + .skip_stdout = false, + .sterr_lines_to_ignore = 0, + .passive = false, .outputfile = NULL, + + .output_format_is_set = false, }; return tmp; } -- cgit v1.2.3-74-g34f1