Template question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Template question

Post 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
Everybody is somebody else’s weirdo
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Template question

Post 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?
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Template question

Post by JohnFLi »

I don't see a blue circle, nor an 'action' column
Everybody is somebody else’s weirdo
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Template question

Post 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.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Template question

Post 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)
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Template question

Post 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 ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Template question

Post 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
Everybody is somebody else’s weirdo
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Template question

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Template question

Post by JohnFLi »

pm sent
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Template question

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked