Notification escalations

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Notification escalations

Postby Nagios_Admin_M » Tue Mar 07, 2017 7:50 am

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.
Nagios_Admin_M
 
Posts: 69
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Postby mcapra » Tue Mar 07, 2017 1:39 pm

Which contact group is it sending to?

Can we also see the corresponding contactgroup and service definitions for these escalations?
Former Nagios employee - https://github.com/mcapra/
User avatar
mcapra
 
Posts: 2451
Joined: Thu May 05, 2016 3:54 pm

Re: Notification escalations

Postby Nagios_Admin_M » Tue Mar 07, 2017 3:28 pm

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.
Nagios_Admin_M
 
Posts: 69
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Postby tgriep » Wed Mar 08, 2017 12:38 pm

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!
User avatar
tgriep
Madmin
 
Posts: 5307
Joined: Thu Oct 30, 2014 9:02 am

Re: Notification escalations

Postby Nagios_Admin_M » Wed Mar 08, 2017 7:38 pm

My problem has been solved. I replaced host template which was a reason of problems.
Thank you for your help.
Nagios_Admin_M
 
Posts: 69
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Postby cdienger » Mon Mar 13, 2017 11:10 am

Reopened thread as requested by OP.
User avatar
cdienger
 
Posts: 404
Joined: Tue Feb 07, 2017 11:26 am

Re: Notification escalations

Postby Nagios_Admin_M » Mon Mar 13, 2017 1:05 pm

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
}
Nagios_Admin_M
 
Posts: 69
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Postby tmcdonald » Mon Mar 13, 2017 4:19 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Manager
 
Posts: 8366
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification escalations

Postby Nagios_Admin_M » Tue Mar 14, 2017 8:16 am

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
}
Nagios_Admin_M
 
Posts: 69
Joined: Fri Jul 22, 2016 4:39 am

Re: Notification escalations

Postby tmcdonald » Tue Mar 14, 2017 5:02 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Manager
 
Posts: 8366
Joined: Mon Sep 23, 2013 8:40 am

Next

Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot] and 15 guests