Host and Service Templates
Posted: Thu Mar 07, 2013 11:22 am
I'm running Nagios XI 2012R1.6, in Evaluation Mode.
I've been trying to get Host and Service Templates to cooperate, and I'm having a devil of a time.
My understanding is that a Template is a group of settings that can be inherited by an object. In that interpretation, I should be able to define a Service Template, assign that to a Host, and that host would inherit all of the services in the Service Template. Likewise, if I assigned a Service Template to a Hostgroup, all of the hosts in that Hostgroup should inherit all of the services in the associated Service Template. Is that a correct analysis?
I can't get this to work.
Just for reference, here are my precise steps:
1. Log into NagiosXI CCM
2. Define a generic host
3. Define a Service Template
4. In the Service Template definition, select "Manage Hosts"
5. Select my Host and add it (I've tried +, null, and standard)
6. Reload the configuration
7. Check Service Detail
8. No services defined on my new host
I've also tried associating the Service Template with a Hostgroup. I've also tried defining Hostgroup Templates, then associating those to a Hostgroup.
None of these work.
Is there a concise guide on how to configure this sort of functionality in NagiosXI? Is the evaluation mode crippled? Am I doing something horribly wrong? Or is this the wrong method of inheritance? I have a large number of homogenous hosts I need to monitor, and I need the capability to change service definitions across the whole landscape without having to hand edit each host. Are Templates the right method of doing this?
Also, what is the difference between a Service Template and a Hostgroup Template?
Thanks very much for any assistance.
I've been trying to get Host and Service Templates to cooperate, and I'm having a devil of a time.
My understanding is that a Template is a group of settings that can be inherited by an object. In that interpretation, I should be able to define a Service Template, assign that to a Host, and that host would inherit all of the services in the Service Template. Likewise, if I assigned a Service Template to a Hostgroup, all of the hosts in that Hostgroup should inherit all of the services in the associated Service Template. Is that a correct analysis?
I can't get this to work.
Just for reference, here are my precise steps:
1. Log into NagiosXI CCM
2. Define a generic host
3. Define a Service Template
4. In the Service Template definition, select "Manage Hosts"
5. Select my Host and add it (I've tried +, null, and standard)
6. Reload the configuration
7. Check Service Detail
8. No services defined on my new host
I've also tried associating the Service Template with a Hostgroup. I've also tried defining Hostgroup Templates, then associating those to a Hostgroup.
None of these work.
Is there a concise guide on how to configure this sort of functionality in NagiosXI? Is the evaluation mode crippled? Am I doing something horribly wrong? Or is this the wrong method of inheritance? I have a large number of homogenous hosts I need to monitor, and I need the capability to change service definitions across the whole landscape without having to hand edit each host. Are Templates the right method of doing this?
Also, what is the difference between a Service Template and a Hostgroup Template?
Thanks very much for any assistance.