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 +}