summaryrefslogtreecommitdiffstats
path: root/zones.d/global-templates
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2020-05-11 20:35:04 +0200
committerTobias Wiese <tobias@tobiaswiese.com>2020-05-11 20:35:04 +0200
commit50be889b75116ae5b36ea9113e79649df16c6986 (patch)
tree2c9304d31cfa916c7add63147878c1be542a6d6e /zones.d/global-templates
parent4c255bd3feafb976e0030b699807d0bb8d3957a2 (diff)
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 <tobias@tobiaswiese.com>
Diffstat (limited to 'zones.d/global-templates')
-rw-r--r--zones.d/global-templates/hosts.conf9
1 files changed, 9 insertions, 0 deletions
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" ]
+ }
}