Templates not applied to hosts or Services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
qcmonitor
Posts: 18
Joined: Wed Feb 03, 2010 12:14 pm

Templates not applied to hosts or Services

Post by qcmonitor »

Hello

I tried to modified some templates (hosts and services) before adding new servers and services.
For example, in the xiwizard_nrpe_service, I changed in the Alert Settings tab the Notification period (24x7), notification options (all checked), Notification enabled to on and First notification delay (0). On the Check Settings tab, I changed the active checks enabled to on, Passive checks enabled to on, Check period to 24x7 and check Freshness to on.
I did the same changes for some other templates.

But when I use monitoring wizards and start to monitor hosts and services, all of these settings are not applied. I need to change them manually for each service.
When I edit each host or service, I can see that the template used is the one modified.

Any idea why changes are not reflected?

Thanks

Chris
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Templates not applied to hosts or Services

Post by tonyyarusso »

First, can you specify what you mean by "all of these settings are not applied"? Note that they will not appear checked / set on the service created by the wizard. That service will simply reference the template, which has them set. So, your final indication of their setting comes from the resulting behavior, not what you see on the configuration of that service alone.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
qcmonitor
Posts: 18
Joined: Wed Feb 03, 2010 12:14 pm

Re: Templates not applied to hosts or Services

Post by qcmonitor »

Well for example, I modified the xiwizard_nrpe_service template and the generic service template, and from the alert setting tab, I set the notification period to 24x7 and the notification enabled to on.

When I added a linux host using the wizard, if I edit the Memory usage service created, The notification period is not set, and the notification enabled is set to off.

I was hoping to have these settings set the same as the template.

Thanks

Chris
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Templates not applied to hosts or Services

Post by mguthrie »

Some of the templates reference generic templates such as the xiwizard_generic_host.

Core Config Manager -> Templates -> pick your service or host template:

Under the Common Settings tab, check for Additional Templates and see if there's another referenced template and if it's set up the way you want.
qcmonitor
Posts: 18
Joined: Wed Feb 03, 2010 12:14 pm

Re: Templates not applied to hosts or Services

Post by qcmonitor »

I've just checked the service template, noted the additional template.
But I have also already modified the additional template with the same settings.

I've checked that all service and host templates have the same settings. But when I deploy a new host, the associated services created do not get these settings.

Chris
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Templates not applied to hosts or Services

Post by mguthrie »

Try first using the write configuration tool, optionally setting the permissions with the shell commands first.

Then and only then look at the files in:
/usr/local/nagios/etc
to discover the templates and the other objects, perhaps zip up this folder and send it to us.

also look at /usr/local/nagios/var/objects.cache or whatever it is and see how the services are actually built up. This file contains fully compiled services and hosts with all the templates merged.


Note: These aren't our typical troubleshooting steps, but this will give us a better idea of what's going on.
qcmonitor
Posts: 18
Joined: Wed Feb 03, 2010 12:14 pm

Re: Templates not applied to hosts or Services

Post by qcmonitor »

Sorry to ask you such a question, but what is the write configuration tool?

Thanks

Chris
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Templates not applied to hosts or Services

Post by mmestnik »

On this *new* page it's called the debugging tool.
http://support.nagios.com/wiki/index.php/Nagios_XI:FAQs
qcmonitor
Posts: 18
Joined: Wed Feb 03, 2010 12:14 pm

Re: Templates not applied to hosts or Services

Post by qcmonitor »

I'm sorry but I do not have access to this page.

Chris
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Templates not applied to hosts or Services

Post by mmestnik »

What is the error you get?
We don't have our FAQ restricted.
Locked