Page 1 of 1
Cannot use the Templates in XI
Posted: Wed Oct 15, 2014 6:36 am
by zkarman
Hi All,
I installed the latest version of the XI on the CentOS box. I've created one of the templates in the host / service section, and try to apply to one of the host, but i cannot.
I've already asked my colleague about the templates, but he get the same things.
The XI added the templates into the host, but i cannot see nothing int the view page.
My question is, how can I investigate where is the error?
Rgs, Zsolt
Re: Cannot use the Templates in XI
Posted: Wed Oct 15, 2014 5:45 pm
by sreinhardt
Could you post a few screenshots where you are not seeing information that you expect? When applying a template, the service object does not show any changes in either the core config manager page, or flat config file. The only time you would see an actual change is via the running core system or looking at the objects.cache file after a core system had already processed your new configs. Just to be sure, you were able to successfully apply config after making those changes?
Re: Cannot use the Templates in XI
Posted: Wed Oct 22, 2014 5:33 am
by zkarman
Hi,
the problem is when i
1. create a service
2. put into the servicegroup
3. create the template
4. connect in the template the hostgroup and the service group
If i assign just the service with the host group it works.
Regards, Zsolt
Re: Cannot use the Templates in XI
Posted: Wed Oct 22, 2014 3:57 pm
by sreinhardt
Unfortunately templates cannot be applied like this. They will need to be applied to the actual object you intend to have inherit from it. Adding to a group actually applies the template to the group object(service group) not the objects(services) within the group. Does that make more sense, why it isn't working at the moment?
Re: Cannot use the Templates in XI
Posted: Thu Oct 23, 2014 8:52 am
by zkarman
Hi,
Ok, could you please give me any document, or steps, how is it working the templates, hostgroups, and the servicesgroups?
Regards, Zsolt
Re: Cannot use the Templates in XI
Posted: Thu Oct 23, 2014 4:46 pm
by sreinhardt
As there are many ways it could be applied, it's a bit tricky to give steps on what you should do for your environment. However here's some documents and videos that I find helpful when designing how I am going to monitor a network.
Host management using CCM
Using Service Templates
Bulk Host and Service Management with Templates
Core 4 Object Inheritance
Re: Cannot use the Templates in XI
Posted: Fri Oct 31, 2014 2:27 am
by zkarman
HI,
This was very useful.
My question is, if i create an template and apply to the host or group, it looks like that method just create a link, not the "real" new service.
Is it possible to create automatically any service, via templates?
Because for example, the template contains only the command, and the default warning or critical values.
But if i would like to change the thresholds one by one like customize for the monitored host?
Regards, ZSolt
Re: Cannot use the Templates in XI
Posted: Fri Oct 31, 2014 12:56 pm
by sreinhardt
Is it possible to create automatically any service, via templates?
Yes but not soley through templates. One of the best presentations for automated host and service management is
this guy
Because for example, the template contains only the command, and the default warning or critical values.
But if i would like to change the thresholds one by one like customize for the monitored host?
The way that inheritance works, you can apply many different templates to a single object. When doing this, it starts with the service object and follows the templates down. If there is nothing already added to a field (like thresholds) from the main object or previously applied templates, the current object or templates settings for that field will be added. Otherwise if something else applied a value first in most cases it will not apply the template configs, and instead respect the lower objects as it should. This way you can set per service warning thresholds and such, while still defining 90% of the config in template(s). Even if the template has default warn\crit values, if the service object or a previously inherited template does, it will not overwrite them.