In my nagios configuration, hosts that use a specific template are automatically added to a hostgroup, so my configuration looks something like this:
define host {
name foo
...
hostgroups bar
register 0
}
define host {
name baz
use foo
}
But now I want to add host baz
also to another hostgroup. I know, I can do this in the hostgroup, but is there a way to do it in the host? I think of something like this:
define host {
name baz
use foo
hostgroups <hostgroupsYouAreAlreadyIn>,another-hostgroup
}
Thanks!