Notification escalations
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Notification escalations
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
}
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.
Re: Notification escalations
Which contact group is it sending to?
Can we also see the corresponding contactgroup and service definitions for these escalations?
Can we also see the corresponding contactgroup and service definitions for these escalations?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: Notification escalations
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
}
################## 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.
Re: Notification escalations
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?
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!
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: Notification escalations
My problem has been solved. I replaced host template which was a reason of problems.
Thank you for your help.
Thank you for your help.
Re: Notification escalations
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.
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: Notification escalations
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
}
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
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
-
- Posts: 77
- Joined: Fri Jul 22, 2016 4:39 am
Re: Notification escalations
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
}
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
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