diff options
| author | Tobias Wiese <tobias@tobiaswiese.com> | 2020-06-14 23:51:30 +0200 |
|---|---|---|
| committer | Tobias Wiese <tobias@tobiaswiese.com> | 2020-06-14 23:51:30 +0200 |
| commit | 5ae8ec2ee094063059ede9867a971e1060078e43 (patch) | |
| tree | 1e693228b65c24fab5a8a9b197eec74ba1914af8 | |
| parent | 0618f4a9e439cd5f836b0f14069bf46f6425ab58 (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>
| -rw-r--r-- | zones.d/global-templates/services.conf | 4 |
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" { |
