diff options
| author | Tobias Wiese <tobias@tobiaswiese.com> | 2020-06-06 21:18:50 +0200 |
|---|---|---|
| committer | Tobias Wiese <tobias@tobiaswiese.com> | 2020-06-06 21:18:50 +0200 |
| commit | 797eb127cbad9b9e076e2a17595a9cf846971e93 (patch) | |
| tree | 39dc7c64fa8f4dee8e1858073a6fed5389c0e77a | |
| parent | d6e394443554fd987101edeacec8c37853fdfdc8 (diff) | |
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 <tobias@tobiaswiese.com>
| -rw-r--r-- | zones.d/master/services.conf | 9 |
1 files changed, 8 insertions, 1 deletions
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" |
