Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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

Nagios 4 and hostgroup inheritance

share|improve this answer
Oh interesting. Does that work in nagios2 (the current version in debian)? – Rory Jul 31 '09 at 13:26
Afaik: no. That's not the only reason I'd recommend going to Nagios3 (or Icinga when it's out). – chankster Jul 31 '09 at 13:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.