Page 1 of 1
creating a group of groups
Posted: Thu Aug 01, 2019 3:18 pm
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!
Re: creating a group of groups
Posted: Sat Aug 03, 2019 7:09 pm
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
Re: creating a group of groups
Posted: Mon Aug 05, 2019 8:42 am
by gmills
thank you for taking time for this question, I did try this, at first, must have done something stupid.
I appreciate it.
Re: creating a group of groups
Posted: Mon Aug 05, 2019 8:50 am
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.

Re: creating a group of groups
Posted: Mon Aug 05, 2019 8:52 am
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?