[Nagios-devel] Potential Bug

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Potential Bug

Post by Guest »

I just ran into this one in 1.0b6 using the nagios -v check:

If you have an entry in the members section of a hostgroup definition
that isn't the name of a host, instead of giving an error about an
unknown host, you only get a warning. And the warning you get isn't
about an unknown host, but instead a warning that several hosts are not
part of a hostgroup. The hosts listed in the warning are all the ones
that come after the undefined host.

Example:

define hostgroup{
members host1,host2,host3,hostX,host5,host6,host7
contact_groups ops
alias Internal Hosts
hostgroup_name internal_hosts
}

If hostX isn't defined in the configs, when you run nagios -v, you get
the message

Warning: Host 'host5' is not a member of any host groups!
Warning: Host 'host6' is not a member of any host groups!
Warning: Host 'host7' is not a member of any host groups!

instead of an error that hostX doesn't exist.

-Russell

--
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: russell@quadrix.com
Locked