From 50be889b75116ae5b36ea9113e79649df16c6986 Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Mon, 11 May 2020 20:35:04 +0200 Subject: notifications: Notify via email and telegram Provide notification in case of a state change via email and telegram bot. The telegram bot is especially helpful in cases where a problem with email delivery is to be reportet. Signed-off-by: Tobias Wiese --- zones.d/global-templates/hosts.conf | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zones.d/global-templates/hosts.conf') diff --git a/zones.d/global-templates/hosts.conf b/zones.d/global-templates/hosts.conf index e301dcf..ccc8007 100644 --- a/zones.d/global-templates/hosts.conf +++ b/zones.d/global-templates/hosts.conf @@ -1,3 +1,12 @@ template Host "generic-host" { check_command = "hostalive" + + /* Notifications */ + vars.notification["mail"] = { + groups = [ "hostmaster" ] + } + + vars.notification["telegram"] = { + groups = [ "hostmaster" ] + } } -- cgit v1.2.3