Can you define an empty hostgroup?
Marc Powell
marc at ena.com
Fri Aug 18 18:57:10 CEST 2006
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Samuel P Howard
> Sent: Friday, August 18, 2006 11:09 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Can you define an empty hostgroup?
>
> Hi.
>
> Sounds like an odd question, but can you define an empty hostgroup?
>
> Here's why.
>
> Trying to follow one of the ideas in the "Time Saving Tricks" page of
> the docs, I am adding each host to the hostgroup in the "host"
> definition ... this makes it a lot easier for me to automate the
> creating of new hosts ... problem is, if I don't pre-define the
> hostgroup, it doesn't pass the pre-flight check.
>
> If I do try to define the hostgroup, I need to give it a hostname,
which
> I don't have because it will depend on which hosts are already defined
> (and thus adding themselves to the hostgroup).
>
> The only work around I've found is to put one host in the hostgroup as
> an anchor, but if that host ever gets removed from the monitoring, the
> pre-flight check will fail and the system won't reload the config (and
> the customers will be very confused why their changes aren't working
> anymore).
Each defined hostgroup must have at least one member, either within the
hostgroup{} definition itself or in by way of the hostgroups field in
the host{} definition. I encountered the same issue with our automated
config generation and created an anchor host that was never checked and
assigned to those hostgroups that would intermittently have real hosts.
The proper solution is to track which hostgroups have active members and
then create them as needed.
--
Marc
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list