Page 1 of 1

Templates not applied to hosts or Services

Posted: Thu Jul 08, 2010 2:19 pm
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

Re: Templates not applied to hosts or Services

Posted: Thu Jul 08, 2010 3:22 pm
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.

Re: Templates not applied to hosts or Services

Posted: Thu Jul 08, 2010 3:28 pm
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

Re: Templates not applied to hosts or Services

Posted: Fri Jul 09, 2010 11:14 am
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.

Re: Templates not applied to hosts or Services

Posted: Fri Jul 09, 2010 12:44 pm
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

Re: Templates not applied to hosts or Services

Posted: Mon Jul 12, 2010 11:30 am
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.

Re: Templates not applied to hosts or Services

Posted: Wed Jul 14, 2010 9:48 am
by qcmonitor
Sorry to ask you such a question, but what is the write configuration tool?

Thanks

Chris

Re: Templates not applied to hosts or Services

Posted: Wed Jul 14, 2010 3:55 pm
by mmestnik
On this *new* page it's called the debugging tool.
http://support.nagios.com/wiki/index.php/Nagios_XI:FAQs

Re: Templates not applied to hosts or Services

Posted: Thu Jul 15, 2010 3:08 pm
by qcmonitor
I'm sorry but I do not have access to this page.

Chris

Re: Templates not applied to hosts or Services

Posted: Thu Jul 15, 2010 3:39 pm
by mmestnik
What is the error you get?
We don't have our FAQ restricted.