Page 1 of 1

Re: [Nagios-devel] empty hostgroups

Posted: Wed May 05, 2010 8:38 am
by Guest
On 05/05/2010 08:41 AM, Michal Svoboda wrote:
> Hi,
>
> it seems nagios does not like (as in, won't start) a setup where we have
> a couple of services that belong to a hostgroup but the hostgroup itself
> is empty.
>
> Why is that?
>

Because Nagios assumes all services have hosts. When it can't find a host
for the service, it bails out, which is what's happening now.

> The use case is that the hostgroup sometimes contains a host, sometimes
> two, and sometimes none, but I like to keep all the respective configs
> around to that the transition from none to one is easy.
>

Add a dummy host to the group if you like, or live with this limitation.
If we add this feature, we'll get complaints from users who have
inadvertantly emptied one or more contactgroups and expect to get
warned by Nagios' config parsing tool.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]