From 5ae8ec2ee094063059ede9867a971e1060078e43 Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Sun, 14 Jun 2020 23:51:30 +0200 Subject: mailq: monitor nullmailer by default By default every host has a nullmailer installed (unless it has some other mailserver), so monitor the mailq of nullmailer unless some other mailserver (or "none") is explicitly defined. Signed-off-by: Tobias Wiese --- zones.d/global-templates/services.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zones.d/global-templates/services.conf b/zones.d/global-templates/services.conf index d86a7a0..a540ff5 100644 --- a/zones.d/global-templates/services.conf +++ b/zones.d/global-templates/services.conf @@ -72,10 +72,10 @@ apply Service "mailq" { mailq_critical = 55 mailq_domain_warning = 30 mailq_domain_critical = 35 - mailq_servertype = host.vars.mailserver + mailq_servertype = host.vars.mailserver || "nullmailer" } - assign where host.vars.mailserver + assign where host.vars.mailserver != "none" } apply Service "pgsql" { -- cgit v1.2.3