From 797eb127cbad9b9e076e2a17595a9cf846971e93 Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Sat, 6 Jun 2020 21:18:50 +0200 Subject: smtp-cert: add extra service for smtp certificate Monitor the smtp certificate in it's own service instead of including the monitoring with the other smtp-* services. After this change the time the mailserver takes to answer will be monitored. Signed-off-by: Tobias Wiese --- zones.d/master/services.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'zones.d/master/services.conf') diff --git a/zones.d/master/services.conf b/zones.d/master/services.conf index 9a86a10..af13c35 100644 --- a/zones.d/master/services.conf +++ b/zones.d/master/services.conf @@ -105,7 +105,6 @@ template Service "smtp" { vars += { smtp_starttls = true - smtp_certificate_age = 10 smtp_warning = 0.1s smtp_critical = 0.2s } @@ -125,6 +124,14 @@ apply Service "smtp-secure" { assign where host.vars.mailserver } +apply Service "smtp-cert" { + import "smtp" + + vars.smtp_certificate_age = 10 + + assign where host.vars.mailserver +} + apply Service "submission" { import "smtp" -- cgit v1.2.3