Page 1 of 1

How to group by servicegroups?

Posted: Fri Jul 12, 2019 4:11 am
by iam33
Hi!
Thanks in advance!

I would like if is there any way to group by servicegroups, that is, can I create a group of servicegroups?

thanks a lot!

Re: How to group by servicegroups?

Posted: Fri Jul 12, 2019 8:12 am
by scottwilkerson
You can create service groups that contain members of other service groups like so

Code: Select all

define servicegroup {
    servicegroup_name       SERVICEGROUPCOMBINED
    servicegroup_members    SERVICEGROUP1,SERVICEGROUP2
}
This group will contain all the services in SERVICEGROUP1 & SERVICEGROUP2

This show up as a new service group called SERVICEGROUPCOMBINED

Re: How to group by servicegroups?

Posted: Mon Jul 15, 2019 1:17 am
by iam33
thanks for your answer!

I thought that, but it's not like that. If you create a group of services and put in the "servicegroup_members" directive the groups of services that you want, they simply appear in this, the services declared in each one of the members, not the name of these, as it happens with the hosts_groups. ..

Another option?

Re: How to group by servicegroups?

Posted: Mon Jul 15, 2019 6:32 am
by scottwilkerson
iam33 wrote:If you create a group of services and put in the "servicegroup_members" directive the groups of services that you want, they simply appear in this, the services declared in each one of the members, not the name of these
This is correct, the members get added, it doesn't add nested group. There is no way to add nested groups for host groups or service groups

Re: How to group by servicegroups?

Posted: Wed Jul 17, 2019 5:54 am
by iam33
than you so much!

:o :o :o

Do you know if the nested groups will be on future versions?

I think thats very important to clasify the host and services... in other monitoring platforms it is a basic characteristic for the administration of the same.

thanks!!

Re: How to group by servicegroups?

Posted: Wed Jul 17, 2019 6:33 am
by scottwilkerson
iam33 wrote:Do you know if the nested groups will be on future versions?
There is no plans for this at this time. You could put in a feature request on the project but there are no guarantees it would be added.
https://github.com/NagiosEnterprises/nagioscore

Re: How to group by servicegroups?

Posted: Wed Jul 17, 2019 8:13 am
by iam33
Thanks!!

I´ve opened a new post in "General Support ‹ Nagios Core ‹ Nagios Core Development" to open a feature request. Like it´s say in:

Code: Select all

Do you have an idea or feature request to make Nagios better? Join or start a discussion on the Nagios Core Development forum.
Is this the right way?

Re: How to group by servicegroups?

Posted: Wed Jul 17, 2019 8:35 am
by scottwilkerson
iam33 wrote:Is this the right way?
No, I'll close that thread, you would want to add the request to the open source project here
https://github.com/NagiosEnterprises/nagioscore/issues

Re: How to group by servicegroups?

Posted: Thu Jul 18, 2019 12:37 am
by iam33
Done!
thanks!!

Re: How to group by servicegroups?

Posted: Thu Jul 18, 2019 6:24 am
by scottwilkerson
iam33 wrote:Done!
thanks!!
Great!

Locking