Page 1 of 1

Assign Service Checks to Host Groups

Posted: Wed Mar 13, 2013 3:31 pm
by asmgiadmin
I'm failing to understand process of assigning service checks for host groups.

For example, I have service group - servers-linux-all - which I plan to assign CPU, RAM, and Disk checks.

What is process for creating each service using check_nrpe command and assigning to host group?

I've attempted to create each service, but since service is not assigned to host, I am unable to add to service group.

Ideally, I'd create service -> add service to group -> add service group to host group but that isn't translating to XI.

Re: Assign Service Checks to Host Groups

Posted: Wed Mar 13, 2013 4:02 pm
by slansing
The process for this would be as follows:

1. Create a new service, add all the configuration options to the service that you plan to add to a host "Ideally if you are going to be making mass changes you could create a service template, and assign this template to the service.

2. Once the service is created, assign it to a existing or new host. (This is done within the service definition page of the CCM)

3. Once the service(s) have been added to the hosts, you can assign them to a Host group.

In essence, you have a Service attached to a host, and that host is attached to a hostgroup.

Re: Assign Service Checks to Host Groups

Posted: Thu Mar 14, 2013 8:29 am
by asmgiadmin
Ahh - the method I was looking for was:

1. Create Service Check
2. Assign Service Template
3. Assign Host Group

This will create service checks for all servers specified in host group.

With above setup, how important are service groups? Since services are not assigned to each individual host, they are not available in creating service groups.

Re: Assign Service Checks to Host Groups

Posted: Thu Mar 14, 2013 9:42 am
by sreinhardt
Service groups in this instance would be best used to correlate similar services on a single view. However your idea when applying a template, would simply add checks for fill in values such as description for you. Within a template you can assign a check command, however you can only apply one. Subsequently adding a template to a service, will not adopt the service check into the template. If you wish to assign services to host groups you certainly can, and it will work in a blanket manor with multiple checks as templates would otherwise.

1) Create service check as needed.
2) On the service configuration page, add it to a host group
3) Add hosts to the host group as you like, either through managing individual hosts or through adding them all via hostgroup management.