Link Service Template and Host Template

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
daveinvb
Posts: 67
Joined: Tue Jun 02, 2015 9:06 am

Link Service Template and Host Template

Post by daveinvb »

I have a group of hosts that are checked and assigned to a host group by a host template. What is the easiest way to add services to those hosts?

I have servers in host group 1 with host template 1. I want to monitor C Drive and Service A.
I have servers in host group 2 with host template 2. I want to monitor C Drive and Service B.

I thought I could create a service template and assign it to the hosts, but that doesn't work.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Link Service Template and Host Template

Post by tmcdonald »

You can assign a service to a whole hostgroup by clicking "Manage Hostgroups" in the CCM for that host.
Former Nagios employee
daveinvb
Posts: 67
Joined: Tue Jun 02, 2015 9:06 am

Re: Link Service Template and Host Template

Post by daveinvb »

Okay, and that will not assign anything with that service into that host group like it does with the host template?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Link Service Template and Host Template

Post by lmiltchev »

When you add a service to a host group, the service will be added to ALL members of this particular host group.
So, you can add all hosts on which you want to monitor "Service A" to "hostgroup 1", then add the check for "Service A" to "hostgroup 1".
Do the same with "hostgroup 2" and "Service B". You can add the check for C Drive to both hostgroups.

As you add new hosts as members to "hostgroup 1" or "hostgroup 2", the "Service A", "Service B", and "C Drive" services will be automatically added to each new host.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked