diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-09 11:32:43 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-09 11:32:43 +0100 |
| commit | 62035adf6c8199eba54755f23e8affe97e645300 (patch) | |
| tree | dbf0cabdc24d1c3fdb96ef425ffb5cfec380e2e4 /plugins/check_smtp.d | |
| parent | 4442ea917b9b3a7bc4fe4b980bbfc70b533a6010 (diff) | |
| download | monitoring-plugins-62035adf6c8199eba54755f23e8affe97e645300.tar.gz | |
check_smtp: implement output format cli parameter
Diffstat (limited to 'plugins/check_smtp.d')
| -rw-r--r-- | plugins/check_smtp.d/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_smtp.d/config.h b/plugins/check_smtp.d/config.h index bc433093..11d7fe56 100644 --- a/plugins/check_smtp.d/config.h +++ b/plugins/check_smtp.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 "thresholds.h" | 5 | #include "thresholds.h" |
| 5 | #include <stddef.h> | 6 | #include <stddef.h> |
| 6 | #include <string.h> | 7 | #include <string.h> |
| @@ -46,6 +47,9 @@ typedef struct { | |||
| 46 | bool use_starttls; | 47 | bool use_starttls; |
| 47 | bool use_sni; | 48 | bool use_sni; |
| 48 | #endif | 49 | #endif |
| 50 | |||
| 51 | bool output_format_is_set; | ||
| 52 | mp_output_format output_format; | ||
| 49 | } check_smtp_config; | 53 | } check_smtp_config; |
| 50 | 54 | ||
| 51 | check_smtp_config check_smtp_config_init() { | 55 | check_smtp_config check_smtp_config_init() { |
| @@ -83,6 +87,8 @@ check_smtp_config check_smtp_config_init() { | |||
| 83 | .use_starttls = false, | 87 | .use_starttls = false, |
| 84 | .use_sni = false, | 88 | .use_sni = false, |
| 85 | #endif | 89 | #endif |
| 90 | |||
| 91 | .output_format_is_set = false, | ||
| 86 | }; | 92 | }; |
| 87 | return tmp; | 93 | return tmp; |
| 88 | } | 94 | } |
