implement notification boilerplate

This commit is contained in:
Yannik Schmidt
2020-06-11 00:28:32 +02:00
parent 2064bf2d86
commit 5307c150ff

View File

@@ -1,4 +1,4 @@
object NotificationCommand "mail-service-notification" { object NotificationCommand "telegram-service-notification" {
command = [ "/etc/icinga2/monitoring-tools/telegram-notify.py" ] command = [ "/etc/icinga2/monitoring-tools/telegram-notify.py" ]
arguments += { arguments += {
@@ -66,3 +66,8 @@ object NotificationCommand "mail-service-notification" {
notification_servicedisplayname = "$service.display_name$" notification_servicedisplayname = "$service.display_name$"
} }
} }
apply Notification "telegram-generic" to Service {
import "mail-service-notification"
assign where host.address
}