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.h21
1 files changed, 17 insertions, 4 deletions
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 @@
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 {
@@ -23,10 +24,16 @@ typedef struct {
23 bool unknown_timeout; 24 bool unknown_timeout;
24 bool unknown_on_stderr; 25 bool unknown_on_stderr;
25 bool warn_on_stderr; 26 bool warn_on_stderr;
26 int skip_stdout; 27 bool skip_stdout;
27 int skip_stderr; 28 size_t stdout_lines_to_ignore;
29 bool skip_stderr;
30 size_t sterr_lines_to_ignore;
31
28 bool passive; 32 bool passive;
29 char *outputfile; 33 char *outputfile;
34
35 bool output_format_is_set;
36 mp_output_format output_format;
30} check_by_ssh_config; 37} check_by_ssh_config;
31 38
32check_by_ssh_config check_by_ssh_config_init() { 39check_by_ssh_config check_by_ssh_config_init() {
@@ -49,10 +56,16 @@ check_by_ssh_config check_by_ssh_config_init() {
49 .unknown_timeout = false, 56 .unknown_timeout = false,
50 .unknown_on_stderr = false, 57 .unknown_on_stderr = false,
51 .warn_on_stderr = false, 58 .warn_on_stderr = false,
52 .skip_stderr = 0, 59
53 .skip_stdout = 0, 60 .skip_stderr = false,
61 .stdout_lines_to_ignore = 0,
62 .skip_stdout = false,
63 .sterr_lines_to_ignore = 0,
64
54 .passive = false, 65 .passive = false,
55 .outputfile = NULL, 66 .outputfile = NULL,
67
68 .output_format_is_set = false,
56 }; 69 };
57 return tmp; 70 return tmp;
58} 71}