2020-01-13 11:22:31 +01:00
|
|
|
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$"
|
2020-07-20 22:04:57 +02:00
|
|
|
SERVICEDISPLAYNAME = "$service.display_name$"
|
|
|
|
SERVICESTATE = "$service.state$"
|
2020-01-13 11:22:31 +01:00
|
|
|
HOSTDISPLAYNAME = "$host.display_name$"
|
|
|
|
SERVICESTATE = "$service.state$"
|
|
|
|
SERVICEOUTPUT = "$service.output$"
|
|
|
|
}
|
|
|
|
}
|