Page 1 of 1

Templates and notifications for contact

Posted: Mon Sep 12, 2011 5:40 pm
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

Re: Templates and notifications for contact

Posted: Tue Sep 13, 2011 1:24 pm
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"?

Re: Templates and notifications for contact

Posted: Tue Sep 13, 2011 2:00 pm
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

Re: Templates and notifications for contact

Posted: Tue Sep 13, 2011 2:52 pm
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

Re: Templates and notifications for contact

Posted: Tue Sep 13, 2011 6:06 pm
by jrmartin
thank you, look forward to the fix.
Jeff