I'm testing escalations for test host and I have 2 escalation files for the same host( one for email, another for phone calls)
I 'll give you just a part of each, because escalations will circle a few times with the same contacts.
this one for emails - I need only one email for contact on each stage
Code: Select all
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contact_groups admins-onreserve
first_notification 2
last_notification 2
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contact_groups chile-technicians
first_notification 5
last_notification 5
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contact_groups chile-managers
first_notification 8
last_notification 8
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contacts lukasz
first_notification 11
last_notification 11
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contacts pat
first_notification 14
last_notification 14
notification_interval 3
escalation_period 24x7
escalation_options d
}
###################################################################################
##### 2-nd iteration
Code: Select all
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contact_groups admins-onreserve-phone
first_notification 2
last_notification 4
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contact_groups chile-technicians-phone
first_notification 5
last_notification 7
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contact_groups chile-managers-phone
first_notification 8
last_notification 10
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contacts lukasz-phone
first_notification 11
last_notification 13
notification_interval 3
escalation_period 24x7
escalation_options d
}
define hostescalation{
host_name test-condor-site
hostgroup_name condor-site,elsalto-site,concert-site
contacts pat-phone
first_notification 14
last_notification 16
notification_interval 3
escalation_period 24x7
escalation_options d
}
################################################################################
##### 2-nd iteration
Code: Select all
define host {
host_name test-condor-site
alias test-condor-site
address 172.16.37.44
check_command check-host-alive
max_check_attempts 5
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
contact_groups admins, admins-phone, first-call
notification_interval 3
notification_period 24x7
notification_options d
notifications_enabled 1
event_handler asteriks-host-phone-call
event_handler_enabled 1
}
define service {
host_name test-condor-site
service_description check-host-alive-or-not
check_command check-host-alive
max_check_attempts 5
check_interval 3
retry_interval 1
active_checks_enabled 1
check_period 24x7
contacts vassiliy,vassiliy-phone;mike,mike-phone
#contact_groups admins, admins-phone
notification_interval 3
notification_period 24x7
notification_options w,u,r,c
notifications_enabled 0
event_handler asteriks-service-phone-call-vassiliy
event_handler_enabled 0
}
the problem is that up to chile-managers group in escalations everything is OK, each contact gets 3 calls and 1 email,
after chile managers escalation stage, contacts in host definition start to get notifications again.
Question is - only 3 stages of escalation allowed or something wrong with my configs? But they follow exactly the same logic as on early stages.
In my understanding untill escalation is finished, host contacts should not get any notifications. Am I right?
Thank you