icinga-plugins/notification/pushover/commands/pushover-notification.conf

57 lines
1.8 KiB
Plaintext

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$"
SERVICEDISPLAYNAME = "$service.display_name$"
SERVICESTATE = "$service.state$"
HOSTDISPLAYNAME = "$host.display_name$"
SERVICESTATE = "$service.state$"
SERVICEOUTPUT = "$service.output$"
}
}