Setting notifications with multiple intervals/contacts/opts
Setting notifications with multiple intervals/contacts/opts
Here is our situation:
We need to have notification emails sent for a service but to different contacts dependent on the service state (w, c, etc.). For example we need all IT personnel to get emails for w, c, and r states with a repeat notification every 60 minutes and a ticket generation system to get only c state notifications with no repeats (only the initial notification). We have a large number of services to monitor like this so manually configuring each one is only a very last ditch option. Also, the service configuration itself does not appear to allow for multiple notification intervals depending on to which contact the email is being sent. If not for this we would control the notification options at the contact config instead of at the service config. In addition, the bulk modify tool does not provide a means to alter notification options.
Just to complicate things, some of the services currently have notification settings applied which need to remain in place.
What would be the best way to approach this problem? We are new to Nagios and are looking for any guidance we can get.
Thanks in advance.
We need to have notification emails sent for a service but to different contacts dependent on the service state (w, c, etc.). For example we need all IT personnel to get emails for w, c, and r states with a repeat notification every 60 minutes and a ticket generation system to get only c state notifications with no repeats (only the initial notification). We have a large number of services to monitor like this so manually configuring each one is only a very last ditch option. Also, the service configuration itself does not appear to allow for multiple notification intervals depending on to which contact the email is being sent. If not for this we would control the notification options at the contact config instead of at the service config. In addition, the bulk modify tool does not provide a means to alter notification options.
Just to complicate things, some of the services currently have notification settings applied which need to remain in place.
What would be the best way to approach this problem? We are new to Nagios and are looking for any guidance we can get.
Thanks in advance.
Last edited by jsharris on Mon Jul 22, 2013 10:02 am, edited 1 time in total.
Re: Setting notifications with multiple intervals/contacts/o
Forgot to include this:
Nagios XI Installation Profile
System:
Nagios XI Version : 2012R2.2
xxxxxxxxxx.com 2.6.32-358.2.1.el6.x86_64 x86_64
CentOS release 6.4 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Server Name: xxxxxxxxx
Server Address: xxxxxxxxx
Server Port: 80
Date/Time
PHP Timezone: America/New_York
PHP Time: Mon, 22 Jul 2013 10:57:31 -0400
System Time: Mon, 22 Jul 2013 10:57:31 -0400
Nagios XI Installation Profile
System:
Nagios XI Version : 2012R2.2
xxxxxxxxxx.com 2.6.32-358.2.1.el6.x86_64 x86_64
CentOS release 6.4 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Server Name: xxxxxxxxx
Server Address: xxxxxxxxx
Server Port: 80
Date/Time
PHP Timezone: America/New_York
PHP Time: Mon, 22 Jul 2013 10:57:31 -0400
System Time: Mon, 22 Jul 2013 10:57:31 -0400
Re: Setting notifications with multiple intervals/contacts/o
Use escalations and escalate the services to the ticketing system. Create a user in XI that has the ticketing system's email address and set the preferences for that account to only receive service critical messages.
In the escalation, just set the first_notification to 1 and also last notification to 1 and it will only send it once.
I think this idea will work.
In the escalation, just set the first_notification to 1 and also last notification to 1 and it will only send it once.
I think this idea will work.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Setting notifications with multiple intervals/contacts/o
Thanks, BanditBBS!
In addition to this, you can use the Escalation Wizard, which is part of the Nagios XI Enterprise Edition. It would save you time by creating escalations to many (or all) services at once.
In addition to this, you can use the Escalation Wizard, which is part of the Nagios XI Enterprise Edition. It would save you time by creating escalations to many (or all) services at once.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setting notifications with multiple intervals/contacts/o
Well, he could also do it by service group or service description as well. The configuration files would end up looking like these examples:lmiltchev wrote:Thanks, BanditBBS!
In addition to this, you can use the Escalation Wizard, which is part of the Nagios XI Enterprise Edition. It would save you time by creating escalations to many (or all) services at once.
For all services in a specific hostgroup(s):
Code: Select all
define serviceescalation{
hostgroup_name whatever_hostgroup
service_description *
contact_groups ticket_system
first_notification 1
last_notification 1
notification_interval 15
}
Code: Select all
define serviceescalation{
hostgroup_name whatever_hostgroup
servicegroup_name whatever_servicegroup
contact_groups ticket_system
first_notification 1
last_notification 1
notification_interval 15
}
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Setting notifications with multiple intervals/contacts/o
@jsharris
Let us know if the recommendations, offered by BanditBBS solved your issue. Thanks!
Let us know if the recommendations, offered by BanditBBS solved your issue. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setting notifications with multiple intervals/contacts/o
Many thanks, gentlemen. I'll look into the service escalation option and report back on how it goes.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Setting notifications with multiple intervals/contacts/o
Great! We will keep the thread open for you to let us know.
Re: Setting notifications with multiple intervals/contacts/o
Haven't been able to do much but the first time through the escalation did not process. The regular notifications went through on the warning, critical, and recovery state changes but nothing went to the escalation email. I am going to go through it all again on Monday morning to be sure I set it up correctly. If I still have trouble I'll post how I have it configured.
Thank you all for your assistance.
Thank you all for your assistance.
Re: Setting notifications with multiple intervals/contacts/o
Sure, let us know if you have any more issues. If this is the case, you can post the serviceescalations.cfg, so that we can take a look at it.
Be sure to check out our Knowledgebase for helpful articles and solutions!