Confused about service_template applying or not

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: Confused about service_template applying or not

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Confused about service_template applying or not

Post 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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: Confused about service_template applying or not

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Confused about service_template applying or not

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Confused about service_template applying or not

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: Confused about service_template applying or not

Post by proxibid »

Thanks for sticking with me. You can close the ticket.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Confused about service_template applying or not

Post by scottwilkerson »

proxibid wrote:Thanks for sticking with me. You can close the ticket.
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked