mdcollins05 / PagerDuty-Icinga2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Host notifications dont send

hobbsh opened this issue · comments

Hi,

I encountered an issue with host notifications not sending. It looks like you're missing the Up/Down states in the user object. Was this intentional? Without it, only ping4 notifications are received (which depending on network latency can go up and down) but no host down notifications (or any other host notifications).

In my opinion, it should be:

object User "pagerduty" {
  pager = "SERVICE_API_KEY_HERE"
  groups = [ "icingaadmins" ]
  display_name = "PagerDuty Notification User"
  states = [ OK, Warning, Critical, Unknown, Up, Down ]
  types = [ Problem, Recovery ]
}