Nagios – Configure a hostgroup to include all the hosts of another group

monitoringnagios

I can define a hostgroup in Nagios to include hosts X, Y, Z. Can I set a hostgroup to include all the hosts from another group as well? So any host in hostgroup B would be included in hostgroup A? And any service that runs for group A would also include all the hosts in group B?

In theory one could do this by just copy and pasting a few lines, but is there a 'cleaner' way?

Best Answer

You can nest hostgroups but not in the way you're describing. See this writeup:

Nagios 4 and hostgroup inheritance