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 aswell? 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 B.

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

link|improve this question

79% accept rate
feedback

1 Answer

up vote 1 down vote accepted

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

Nagios 3 and hostgroup inheritance

link|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
feedback

Your Answer

 
or
required, but never shown

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