Sub Groups within a group
Posted: Wed Nov 28, 2012 12:09 pm
How do you define a sub-group within a Main group ?
e.g Main group "PRODUCTION" & sub group "Prod App Servers"
e.g Main group "PRODUCTION" & sub group "Prod App Servers"
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
define hostgroup{
hostgroup_name production ; The name of the hostgroup
alias Servers in Production ; Long name of the group
hostgroup_members: prod_app_servers,prod_db_servers ;This optional directive can be used to include hosts from other "sub" host groups in this host group. Specify a comma-delimited list of short names of other host groups whose members should be included in this group.
}
define hostgroup{
hostgroup_name prod_app_servers
alias Production app Servers
members server1,server2
}
define hostgroup{
hostgroup_name prod_db_servers
alias Production Database Servers
members server3,server4
}