mirror of
https://github.com/FAUSheppy/monitoring-tools
synced 2025-12-06 03:21:35 +01:00
implement notification boilerplate
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user