Page 1 of 2

Template question

Posted: Wed Mar 11, 2015 10:35 am
by JohnFLi
Is there a way I am able to see ALL the templates associated to a host and or service?

The reason I ask is becasue I am getting the lovely

Code: Select all

Delivery has failed to these recipients or groups:

[email protected]
The e-mail address you entered couldn't be found. Please check the recipient's e-mail address and try to resend the message. If the problem continues, please contact your helpdesk.
again.
Had this issue when I was still using Nagios Core.
http://support.nagios.com/forum/viewtop ... =7&t=28418

but with tons more templates.....I'm looking if there is a way to search for the issue faster

Re: Template question

Posted: Wed Mar 11, 2015 11:02 am
by ssax
In the core config manager you can click on the blue circle under the actions column on a host or service to show relationship info, will that work for you?

Re: Template question

Posted: Wed Mar 11, 2015 11:09 am
by JohnFLi
I don't see a blue circle, nor an 'action' column

Re: Template question

Posted: Wed Mar 11, 2015 12:46 pm
by abrist
In the XI web UI, go to -->Configure --> Core Config Manager --> Hosts or Services. On the right of the object table, you will see an actions column. The blue circle icon will display the respective object's relationships.

Re: Template question

Posted: Wed Mar 11, 2015 4:55 pm
by JohnFLi
gotcha....Thanks.....

But sadly, it didn't help me find out why notifications are being sent out each time there is a state change. (before the threshold is reached that sends out valid notifications)

Re: Template question

Posted: Thu Mar 12, 2015 1:28 am
by Box293
Have a look at:

Code: Select all

/usr/local/nagios/var/objects.cache
This file has the final config for all objects, what is combined after templates are applied. This might help track down what is going on.

Also, are you creating contacts in CCM or are you creating users under Admin > Users > Manage Users ?

Re: Template question

Posted: Thu Mar 12, 2015 10:33 am
by JohnFLi
Also, are you creating contacts in CCM or are you creating users under Admin > Users > Manage Users ?
A little of each.


I pm'd you a copy of the objects file

Re: Template question

Posted: Thu Mar 12, 2015 2:58 pm
by jolson
Any chance you could PM that file to me as well? I would like to open it up and see if I could be of any assistance.

Re: Template question

Posted: Thu Mar 12, 2015 3:10 pm
by JohnFLi
pm sent

Re: Template question

Posted: Thu Mar 12, 2015 10:09 pm
by Box293
JohnFLi wrote:
Also, are you creating contacts in CCM or are you creating users under Admin > Users > Manage Users ?
A little of each.
Thats the cause of your problem.

Nagios XI extends the notification capabilities of Nagios Core, and because of this it requires that contacts objects get created when creating users through Admin > Users > Manage Users.

Creating new users through this method and it will create the Monitoring Contact object correctly.

NOTE: Any notification preferences should be defined while logged on as that user by clicking on their name in the top right corner. You can use the masquerade icon (eyeball) to log in as that user.

Here is a document that explains the XI Contact relationship:
http://assets.nagios.com/downloads/nagi ... ntacts.pdf

Specifically it comes down the the notifications command being used by the contacts.

In a correctly created contact (via Admin):

Code: Select all

	service_notification_commands	xi_service_notification_handler
	host_notification_commands	xi_host_notification_handler

In a manually created contact:

Code: Select all

	service_notification_commands	notify-service-by-email
	host_notification_commands	notify-host-by-email