How to group by servicegroups?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

How to group by servicegroups?

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to group by servicegroups?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

Re: How to group by servicegroups?

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to group by servicegroups?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

Re: How to group by servicegroups?

Post 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!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to group by servicegroups?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

Re: How to group by servicegroups?

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to group by servicegroups?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

Re: How to group by servicegroups?

Post by iam33 »

Done!
thanks!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to group by servicegroups?

Post by scottwilkerson »

iam33 wrote:Done!
thanks!!
Great!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked