Page 1 of 3

Notification escalations

Posted: Tue Mar 07, 2017 7:50 am
by Nagios_Admin_M
Hey,

I configured notification escalation similar as follow, but it sends e-mails to one of this groups.

define serviceescalation{
host_name webserver
service_description HTTP
first_notification 3
last_notification 5
notification_interval 45
contact_groups managers
}

define serviceescalation{
host_name webserver
service_description HTTP
first_notification 4
last_notification 0
notification_interval 60
contact_groups everyone
}

Re: Notification escalations

Posted: Tue Mar 07, 2017 1:39 pm
by mcapra
Which contact group is it sending to?

Can we also see the corresponding contactgroup and service definitions for these escalations?

Re: Notification escalations

Posted: Tue Mar 07, 2017 3:28 pm
by Nagios_Admin_M
To the first one.

################## Contact group definition

define contactgroup{
contactgroup_name managers
alias managers
members managers
}

################## Service escalation definition

define serviceescalation{
host_name host1
service_description check port1
first_notification 1
last_notification 0
notification_interval 5
contact_group managers
}

Re: Notification escalations

Posted: Wed Mar 08, 2017 12:38 pm
by tgriep
I just want to be sure, the emails get sent to the menagers contact group but not the everyone contact group, correct?

If you run a Notification Report, do you see the Service Escalation for that group (everyone) being sent?
Can you post the configuration settings for the everyone contact group and also the settings for the contacts that are defined in that group?

Re: Notification escalations

Posted: Wed Mar 08, 2017 7:38 pm
by Nagios_Admin_M
My problem has been solved. I replaced host template which was a reason of problems.
Thank you for your help.

Re: Notification escalations

Posted: Mon Mar 13, 2017 11:10 am
by cdienger
Reopened thread as requested by OP.

Re: Notification escalations

Posted: Mon Mar 13, 2017 1:05 pm
by Nagios_Admin_M
Let me update the thread, please.

I use generic-service definition from default templates.cfg file for host configuration. Notification Interval option is set to 5 minutes and it works. When I set escalation for the host the escalation blocks the default settings.


service moniotred cfg.

define service{
use generic-service
host_name webserver
service_description HTTP
check_command check_http
}

define serviceescalation{
host_name webserver
service_description HTTP
first_notification 1
last_notification 0
notification_interval 1152
contact_groups other_than_in_the_templates.cfg
}

define contactgroup{
contactgroup_name admins_1152
alias admins_1152
members admins_1152
}

define contact{
contact_name test
use generic-contact
alias test
email test@domain.com
}

Re: Notification escalations

Posted: Mon Mar 13, 2017 4:19 pm
by tmcdonald
That is working as expected. A service escalation modifies the notification settings, and since you have it set to trigger on the first notification this will take effect immediately.

Re: Notification escalations

Posted: Tue Mar 14, 2017 8:16 am
by Nagios_Admin_M
Of, course. It's explains why I wasn't occurring any notifications from the first notification. I modified setting in such a way you directed although e-mails are sent to the higher notification only.

define serviceescalation {
host_name webserver
service_description HTTP
first_notification 1
last_notification 0
notification_interval 1152
contact_groups other_than_in_the_templates.cfg
}

define serviceescalation {
host_name webserver
service_description HTTP
first_notification 1
last_notification 0
notification_interval 20
contact_groups my_email
}

Re: Notification escalations

Posted: Tue Mar 14, 2017 5:02 pm
by tmcdonald
I'll have to check with our Core dev on this and get back to you, but it is possible that the first escalation is the only one being processed.