summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.d/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_by_ssh.d/config.h')
-rw-r--r--plugins/check_by_ssh.d/config.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/plugins/check_by_ssh.d/config.h b/plugins/check_by_ssh.d/config.h
index 05435def..b6a57964 100644
--- a/plugins/check_by_ssh.d/config.h
+++ b/plugins/check_by_ssh.d/config.h
@@ -1,6 +1,7 @@
1#pragma once 1#pragma once
2 2
3#include "../../config.h" 3#include "../../config.h"
4#include "output.h"
4#include <stddef.h> 5#include <stddef.h>
5 6
6typedef struct { 7typedef struct {
@@ -21,11 +22,18 @@ typedef struct {
21 command_construct cmd; 22 command_construct cmd;
22 23
23 bool unknown_timeout; 24 bool unknown_timeout;
25 bool unknown_on_stderr;
24 bool warn_on_stderr; 26 bool warn_on_stderr;
25 int skip_stdout; 27 bool skip_stdout;
26 int skip_stderr; 28 size_t stdout_lines_to_ignore;
29 bool skip_stderr;
30 size_t sterr_lines_to_ignore;
31
27 bool passive; 32 bool passive;
28 char *outputfile; 33 char *outputfile;
34
35 bool output_format_is_set;
36 mp_output_format output_format;
29} check_by_ssh_config; 37} check_by_ssh_config;
30 38
31check_by_ssh_config check_by_ssh_config_init() { 39check_by_ssh_config check_by_ssh_config_init() {
@@ -46,11 +54,18 @@ check_by_ssh_config check_by_ssh_config_init() {
46 }, 54 },
47 55
48 .unknown_timeout = false, 56 .unknown_timeout = false,
57 .unknown_on_stderr = false,
49 .warn_on_stderr = false, 58 .warn_on_stderr = false,
50 .skip_stderr = 0, 59
51 .skip_stdout = 0, 60 .skip_stderr = false,
61 .stdout_lines_to_ignore = 0,
62 .skip_stdout = false,
63 .sterr_lines_to_ignore = 0,
64
52 .passive = false, 65 .passive = false,
53 .outputfile = NULL, 66 .outputfile = NULL,
67
68 .output_format_is_set = false,
54 }; 69 };
55 return tmp; 70 return tmp;
56} 71}