summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.d/config.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-09 11:46:36 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-11-09 11:46:36 +0100
commitbc2720abddf8e379c4e1f23ed25f7702ef29ad08 (patch)
tree71658ad4c291b2eec4779f2367ab0b65744b60d3 /plugins/check_smtp.d/config.h
parent62035adf6c8199eba54755f23e8affe97e645300 (diff)
downloadmonitoring-plugins-bc2720abddf8e379c4e1f23ed25f7702ef29ad08.tar.gz
check_smtp: certificate check is no longer opt-in
This is a breaking change. Testing whether a TLS certificate is still valid (expiration wise) is now the default in check_smtp. The reasoning is, that in most scenarios an expired certificate will effectively mean that the service is not working anymore due to the refusal of other software to talk to it. There is a new cli parameter though to explicitly ignore that.
Diffstat (limited to 'plugins/check_smtp.d/config.h')
-rw-r--r--plugins/check_smtp.d/config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/check_smtp.d/config.h b/plugins/check_smtp.d/config.h
index 11d7fe56..b0d42ed1 100644
--- a/plugins/check_smtp.d/config.h
+++ b/plugins/check_smtp.d/config.h
@@ -40,12 +40,13 @@ typedef struct {
40 40
41 bool use_proxy_prefix; 41 bool use_proxy_prefix;
42#ifdef HAVE_SSL 42#ifdef HAVE_SSL
43 bool check_cert;
44 int days_till_exp_warn; 43 int days_till_exp_warn;
45 int days_till_exp_crit; 44 int days_till_exp_crit;
46 bool use_ssl; 45 bool use_ssl;
47 bool use_starttls; 46 bool use_starttls;
48 bool use_sni; 47 bool use_sni;
48
49 bool ignore_certificate_expiration;
49#endif 50#endif
50 51
51 bool output_format_is_set; 52 bool output_format_is_set;
@@ -80,12 +81,13 @@ check_smtp_config check_smtp_config_init() {
80 81
81 .use_proxy_prefix = false, 82 .use_proxy_prefix = false,
82#ifdef HAVE_SSL 83#ifdef HAVE_SSL
83 .check_cert = false,
84 .days_till_exp_warn = 0, 84 .days_till_exp_warn = 0,
85 .days_till_exp_crit = 0, 85 .days_till_exp_crit = 0,
86 .use_ssl = false, 86 .use_ssl = false,
87 .use_starttls = false, 87 .use_starttls = false,
88 .use_sni = false, 88 .use_sni = false,
89
90 .ignore_certificate_expiration = false,
89#endif 91#endif
90 92
91 .output_format_is_set = false, 93 .output_format_is_set = false,