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
Templates not applied to hosts or Services
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Templates not applied to hosts or Services
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
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
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
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.
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
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
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
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.
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
Sorry to ask you such a question, but what is the write configuration tool?
Thanks
Chris
Thanks
Chris
Re: Templates not applied to hosts or Services
On this *new* page it's called the debugging tool.
http://support.nagios.com/wiki/index.php/Nagios_XI:FAQs
http://support.nagios.com/wiki/index.php/Nagios_XI:FAQs
Re: Templates not applied to hosts or Services
I'm sorry but I do not have access to this page.
Chris
Chris
Re: Templates not applied to hosts or Services
What is the error you get?
We don't have our FAQ restricted.
We don't have our FAQ restricted.