Albert Spruyt wrote:
> hallo nagios-devel,
>
> There doesnt seem to be a hostgroup macro,
There is in Nagios 2.0. It's a bit dubious though, since hosts can be
members of several hostgroups and it only shows one of them.
Documentation doesn't say anything about the rules of election.
> how hard would it be to create one?
To hack around it;
hostgroup=`grep -2 $HOSTNAME$ hostgroups.cfg | grep hostgroup_name | \
head -1 | sed 's/.*hostgroup_name[ ]*//'`
I'm sure its equally trivial in other script languages.
> and are there any reasons not to do it?
The dubiousness.
>
> thanks in advance
> -albert spruyt
>
--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]