Notification: Pushover
Alle benötigten Scripte und Konfigurations-Dateien wurden hinzugefügt
This commit is contained in:
54
notification/pushover/commands/pushover-notification.conf
Normal file
54
notification/pushover/commands/pushover-notification.conf
Normal 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$"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user