Service escalations contact overwrites host contact group
Posted: Tue Feb 09, 2016 12:08 pm
Hi,
I'm trying to setup service escalations to go to Pagerduty using below configs. What actually happens is that alert notifications go to pagerduty contact only and not to Admins contact group defined for this host.
define contact {
contact_name pagerduty-infra
alias PagerDuty Infrastructure
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,r
host_notification_options d,r
service_notification_commands notify-service-by-pagerduty
host_notification_commands notify-host-by-pagerduty
pager <token_goes_here>
}
define serviceescalation {
host_name srv1
service_description SSH
contacts pagerduty-infra
first_notification 1
last_notification 0
escalation_options c,r
}
define host {
address srv1
check_command check-host-alive
contact_groups Admins
host_name srv1
hostgroups Linux Servers
notifications_enabled 1
use generic-host,host-pnp
}
If I understand correctly service escalation should be sent to a contact in addition to what is defined in contact_groups in host level.
Is above configuration correct?
I'm trying to setup service escalations to go to Pagerduty using below configs. What actually happens is that alert notifications go to pagerduty contact only and not to Admins contact group defined for this host.
define contact {
contact_name pagerduty-infra
alias PagerDuty Infrastructure
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,r
host_notification_options d,r
service_notification_commands notify-service-by-pagerduty
host_notification_commands notify-host-by-pagerduty
pager <token_goes_here>
}
define serviceescalation {
host_name srv1
service_description SSH
contacts pagerduty-infra
first_notification 1
last_notification 0
escalation_options c,r
}
define host {
address srv1
check_command check-host-alive
contact_groups Admins
host_name srv1
hostgroups Linux Servers
notifications_enabled 1
use generic-host,host-pnp
}
If I understand correctly service escalation should be sent to a contact in addition to what is defined in contact_groups in host level.
Is above configuration correct?