From 5307c150ffb43957e0ff130206ecda5074bbc73d Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Thu, 11 Jun 2020 00:28:32 +0200 Subject: [PATCH] implement notification boilerplate --- commands.d/telegram-notify.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands.d/telegram-notify.conf b/commands.d/telegram-notify.conf index 84dadbb..accbd89 100644 --- a/commands.d/telegram-notify.conf +++ b/commands.d/telegram-notify.conf @@ -1,4 +1,4 @@ -object NotificationCommand "mail-service-notification" { +object NotificationCommand "telegram-service-notification" { command = [ "/etc/icinga2/monitoring-tools/telegram-notify.py" ] arguments += { @@ -66,3 +66,8 @@ object NotificationCommand "mail-service-notification" { notification_servicedisplayname = "$service.display_name$" } } + +apply Notification "telegram-generic" to Service { + import "mail-service-notification" + assign where host.address +}