creating a group of groups

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
gmills
Posts: 114
Joined: Wed Jun 12, 2019 2:08 pm

creating a group of groups

Post by gmills »

Hello Nagios support, thanks in advance,

can you have a group that contains other groups?

if so, can you please share an example?

thanks again!
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: creating a group of groups

Post by eloyd »

The Nagios documentation tells you how to do this.

Here's an example:

Code: Select all

define hostgroup {
    hostgroup_name       group1
    alias                Group 1 hosts
    members              Work Gateway
}

define hostgroup {
    hostgroup_name       group2
    alias                Group 2 hosts
    members              Work Router
    hostgroup_members    group1
}
Group 1 will contain "Work Gateway" and group 2 will contain "Work Gateway" and "Work Router" since it inherits group 1.

edited to replace typo
Last edited by eloyd on Mon Aug 05, 2019 8:49 am, edited 1 time in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
gmills
Posts: 114
Joined: Wed Jun 12, 2019 2:08 pm

Re: creating a group of groups

Post by gmills »

thank you for taking time for this question, I did try this, at first, must have done something stupid.

I appreciate it.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: creating a group of groups

Post by eloyd »

No problem. This is a quick ad for Nagios XI, since it handle all that inheritance and inclusion stuff for you if you go through the GUI for configuring things. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: creating a group of groups

Post by scottwilkerson »

gmills wrote:thank you for taking time for this question, I did try this, at first, must have done something stupid.

I appreciate it.
May we mark this as resolved?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked