Notification escalations

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Notification escalations

Post 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
}
Last edited by Nagios_Admin_M on Mon Mar 13, 2017 10:21 am, edited 3 times in total.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Notification escalations

Post by mcapra »

Which contact group is it sending to?

Can we also see the corresponding contactgroup and service definitions for these escalations?
Former Nagios employee
https://www.mcapra.com/
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Post 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
}
Last edited by Nagios_Admin_M on Mon Mar 13, 2017 10:21 am, edited 2 times in total.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Notification escalations

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Post by Nagios_Admin_M »

My problem has been solved. I replaced host template which was a reason of problems.
Thank you for your help.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Notification escalations

Post by cdienger »

Reopened thread as requested by OP.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Post 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
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification escalations

Post 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.
Former Nagios employee
Nagios_Admin_M
Posts: 77
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Post 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
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification escalations

Post 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.
Former Nagios employee
Locked