Assign Service Checks to Host Groups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Assign Service Checks to Host Groups

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Assign Service Checks to Host Groups

Post 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.
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Assign Service Checks to Host Groups

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Assign Service Checks to Host Groups

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked