From d6e394443554fd987101edeacec8c37853fdfdc8 Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Thu, 14 May 2020 23:16:48 +0200 Subject: hosts/keen-morse: Monitor the mailserver Add monitoring to the mailserver. Alos adds services for the mailq, smtp and imap Signed-off-by: Tobias Wiese --- zones.d/global-templates/services.conf | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'zones.d/global-templates') diff --git a/zones.d/global-templates/services.conf b/zones.d/global-templates/services.conf index 825b9fe..d86a7a0 100644 --- a/zones.d/global-templates/services.conf +++ b/zones.d/global-templates/services.conf @@ -42,6 +42,8 @@ apply Service "swap" { check_command = "swap" + vars.swap_noswap = "ok" + assign where host.vars.kernel == "linux" } @@ -57,9 +59,25 @@ apply Service "apt" { } /** - * Serice health checks + * Service health checks */ +apply Service "mailq" { + import "generic-service" + + check_command = "mailq" + + vars += { + mailq_warning = 50 + mailq_critical = 55 + mailq_domain_warning = 30 + mailq_domain_critical = 35 + mailq_servertype = host.vars.mailserver + } + + assign where host.vars.mailserver +} + apply Service "pgsql" { import "generic-service" -- cgit v1.2.3