summaryrefslogtreecommitdiffstats
path: root/zones.d
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2020-06-14 23:51:30 +0200
committerTobias Wiese <tobias@tobiaswiese.com>2020-06-14 23:51:30 +0200
commit5ae8ec2ee094063059ede9867a971e1060078e43 (patch)
tree1e693228b65c24fab5a8a9b197eec74ba1914af8 /zones.d
parent0618f4a9e439cd5f836b0f14069bf46f6425ab58 (diff)
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 <tobias@tobiaswiese.com>
Diffstat (limited to 'zones.d')
-rw-r--r--zones.d/global-templates/services.conf4
1 files 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" {