Servicegroup & services linked to a hostgroup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lvaillant
Posts: 57
Joined: Mon Jun 06, 2016 2:47 am
Location: Paris, France

Servicegroup & services linked to a hostgroup

Post by lvaillant »

Hello sirs,
I currently monitor ~2250 nodes and ~12600 related services with Nagios XI 5.4.13.

Most of the time, I define hostgroups and get a quick overview of my defined ecosystems with bbmaps.
I also link services and hostgroups to make some "templates" like linux servers, windows servers, network routers...

I'm now working on servicegroups to split availabilty & quality of service for different ecosystems in my SLA reports.

Doing that, I'm able to list host-service tuples in servicegroups when a service (nagios master process) is directly linked to a host (nagios server).
But if a host (nagios server) is linked to a hostgroup (linux servers), and this hostgroup linked to a service (check TCP/22 port), this tuple (nagios server / check TCP/22 port) is not present in the 'Manage services' list of my new servicegroup (Nagios services availabilty).

Is there a way to do that ? Did I miss something ?
The current servicegroup feature seems not able to manage transitivity.
I don't want to manage ALL the linux servers with 'check TCP/22 port' service in my servicegroup related to Nagios availability.
(And of course, I would like to continue to manage templates with hostgroups, more that directly link hosts & services).

(I hope I described clearly enough my current issue :roll: )
Thank you.
Loïc VAILLANT
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Servicegroup & services linked to a hostgroup

Post by scottwilkerson »

You did explain this complex item quite well, and I confirmed, I cannot add the host/service combination via the CCM as you described.

I will put in a request for this to get changed, for the time being, it would be possible for you to get the desired behavior by adding a static configuration with the servicegroup definition in the /usr/local/nagios/etc/static/custom-servicegroups.cfg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lvaillant
Posts: 57
Joined: Mon Jun 06, 2016 2:47 am
Location: Paris, France

Re: Servicegroup & services linked to a hostgroup

Post by lvaillant »

Hello,

Thank you for the quick answer.
I just tested this solution and even if it is not perfect to manage static files, it works.

I appreciate you take it into account with a bug/feature request.
Loïc VAILLANT
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Servicegroup & services linked to a hostgroup

Post by scottwilkerson »

glad to hear you got itworking, and I did enter the request. locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked