Page 2 of 2
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 12:14 pm
by proxibid
We found this old post -
https://support.nagios.com/forum/viewto ... 2&start=20
We have the same situation. Reading that post, it appears that I need to still apply the service template to a service on each host (or at least one host) and then it will flow down.
Does this seem correct to you?
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 12:32 pm
by scottwilkerson
proxibid wrote:Does this seem correct to you?
No. I just created a new service and applied a template only
service.JPG
In the template I have assigned only this hostgroup, and no hosts
service_template.JPG
After Applying Configuration, I have the "test" service applied to all hosts in the hostgroup
test_services.JPG
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 3:57 pm
by proxibid
OK, the light bulb finally went on for me. I create a service that does not have to be tied to a host configuration. I can create another configuration called whatever. That will "activate" the service template which will applies it to all the hosts in the host group.
Does that sound correct?
I was missing the bit where the service didn't need to be tied to the host config I think.
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 4:03 pm
by scottwilkerson
proxibid wrote:Does that sound correct?
I was missing the bit where the service didn't need to be tied to the host config I think.
That sounds correct.
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 4:05 pm
by scottwilkerson
I'll add that by default when you run wizards, Nagios XI create the configs for the services and uses the hosts name for the config name, but this is just a convention, not a rule.
I'm sure this is what caused the confusion
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 4:24 pm
by proxibid
Thanks for sticking with me. You can close the ticket.
Re: Confused about service_template applying or not
Posted: Thu Jul 25, 2019 4:33 pm
by scottwilkerson
proxibid wrote:Thanks for sticking with me. You can close the ticket.
Great!
Locking