Page 1 of 1

Servicegroup & services linked to a hostgroup

Posted: Wed Mar 28, 2018 4:50 am
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.

Re: Servicegroup & services linked to a hostgroup

Posted: Wed Mar 28, 2018 8:38 am
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

Re: Servicegroup & services linked to a hostgroup

Posted: Wed Mar 28, 2018 10:03 am
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.

Re: Servicegroup & services linked to a hostgroup

Posted: Wed Mar 28, 2018 10:33 am
by scottwilkerson
glad to hear you got itworking, and I did enter the request. locking