Notification: Pushover

Alle benötigten Scripte und Konfigurations-Dateien wurden hinzugefügt
This commit is contained in:
2020-01-13 11:22:31 +01:00
parent b437b5a160
commit 75a6779bb2
9 changed files with 463 additions and 51 deletions

View File

@@ -0,0 +1,54 @@
object NotificationCommand "pushover-host-notification" {
import "plugin-notification-command"
command = [ SysconfDir + "/icinga2/scripts/pushover-host-notification.sh" ]
env = {
PUSHOVERUSER = "$user.vars.pushover_user$"
PUSHOVERTOKEN = "$user.vars.pushover_token$"
PUSHOVERDEVICE = "$user.vars.pushover_device$"
PUSHOVERPRIORITY = "$host.vars.pushover_priority$"
PUSHOVERRETRY = "$host.vars.pushover_retry$"
PUSHOVEREXPIRE = "$host.vars.pushover_expire$"
NOTIFICATIONTYPE = "$notification.type$"
NOTIFICATIONCOMMENT = "$notification.comment$"
NOTIFICATIONAUTHOR = "$notification.author$"
ICINGALONGDATETIME = "$icinga.long_date_time$"
HOSTNAME = "$host.name$"
HOSTDISPLAYNAME = "$host.display_name$"
HOSTSTATE = "$host.state$"
HOSTOUTPUT = "$host.output$"
}
}
object NotificationCommand "pushover-service-notification" {
import "plugin-notification-command"
command = [ SysconfDir + "/icinga2/scripts/pushover-service-notification.sh" ]
env = {
PUSHOVERUSER = "$user.vars.pushover_user$"
PUSHOVERTOKEN = "$user.vars.pushover_token$"
PUSHOVERDEVICE = "$user.vars.pushover_device$"
PUSHOVERPRIORITY = "$service.vars.pushover_priority$"
PUSHOVERRETRY = "$service.vars.pushover_retry$"
PUSHOVEREXPIRE = "$service.vars.pushover_expire$"
NOTIFICATIONTYPE = "$notification.type$"
NOTIFICATIONCOMMENT = "$notification.comment$"
NOTIFICATIONAUTHOR = "$notification.author$"
ICINGALONGDATETIME = "$icinga.long_date_time$"
HOSTNAME = "$host.name$"
SERVICENAME = "$service.name$"
HOSTDISPLAYNAME = "$host.display_name$"
SERVICESTATE = "$service.state$"
SERVICEOUTPUT = "$service.output$"
}
}