Templates and notifications for contact

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Templates and notifications for contact

Post by jrmartin »

Greetings,
Having some issues with templates and notifications. R1.7 prebuilt VM.

I've created a user (z30683as) as admin. I've assigned an email and pager address to this user.
I've gone in a changed notification preferences to email and SMS.
I've selected the type of alerts I'd like to receive (host down, up and recovered).
I've tested via the Send Test Notification and it works as designed. I receive email and SMS test.

Now I created a Host Template and assigned it the check_xi_host_ping command check with no additional templates
defined.

The Check Settings are 24x7 and 5 max attempts with retry at 1 and check interval at 5 and active checks are enabled.

In Alert Settings, I've assigned the previous defined user as the Contact with:
notification period 24x7
notification interval 15
notification options (d) (u) (r)

I then created a host and assigned it the Host Template I defined.

When I test the host by disabling the NIC, Nagios sees the event but does not notify me.

I cannot figure out where I have missed the notification option.

My understanding is if I define a Contact in a Host Template, and assign that template to a host, it should
inherit the Contact notifications from the template. However I am not seeing this.

Any idea where I have gone wrong on this? Thanks for any input.

Jeff
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Templates and notifications for contact

Post by lmiltchev »

Jeff,

I tested the scenario you described but it worked for me. At first, I thought I was running into the same issue as you, but then I found my notifications in the spam folder... :D

Go to the Core Config Manager->Templates->Host Templates. Find your template and click on the "Modify" Action button. Do you have "Notification enabled" on selected under the "Alert Settings" tab?

Also, go to the Core Config Manager->Alerting->Contacts. Find your contact and click on the "Modify" Action button. Do you have the proper information under the "Common Setting" tab in the "E-Mail address" field? Do you have "xi_host_notification_handler" selected for your "Host command"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: Templates and notifications for contact

Post by jrmartin »

Thanks! That is working now as designed.

Also I've come across an anomaly.

In Service Escalations in CCM, after clicking add new, when you click on the Notepad for Services, it says its modifying Contacts.
Is that correct?

Jeff
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Templates and notifications for contact

Post by lmiltchev »

Jeff,

I'm glad you got this working!
In regards to the Service Escalations, we do have a bug in Nagios XI. We will be working on fixing it sometime soon. You can read more info on the topic here:

http://tracker.nagios.com/view.php?id=185
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: Templates and notifications for contact

Post by jrmartin »

thank you, look forward to the fix.
Jeff
Locked