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!
creating a group of groups
Re: creating a group of groups
The Nagios documentation tells you how to do this.
Here's an example:
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
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
}
edited to replace typo
Last edited by eloyd on Mon Aug 05, 2019 8:49 am, edited 1 time in total.
Re: creating a group of groups
thank you for taking time for this question, I did try this, at first, must have done something stupid.
I appreciate it.
I appreciate it.
Re: creating a group of groups
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: creating a group of groups
May we mark this as resolved?gmills wrote:thank you for taking time for this question, I did try this, at first, must have done something stupid.
I appreciate it.