nagios -v not counting all warnings
Thomas Guyot-Sionnest
dermoth at aei.ca
Wed Dec 16 20:59:34 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Avery wrote:
> When I ran "nagios -v" to check my Nagios config just now, it found a
> couple of duplicate service definitions:
>
> ----
> Nagios Core 3.2.0
> Copyright (c) 2009 Nagios Core Development Team and Community Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 08-12-2009
> License: GPL
>
> Website: http://www.nagios.org
> Reading configuration data...
> Read main config file okay...
> Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
> (lots more like this)
> Processing object config file
> '/usr/local/nagios/etc/objects/wireless-ap/ws5000-ap.cfg'...
> Warning: Duplicate definition found for service 'CPU' on host
> 'sh-en-1' (config file
> '/usr/local/nagios/etc/objects/servers-windows/cpu.cfg', starting on
> line 3)
> Read object config files okay...
>
> Running pre-flight check on configuration data...
>
> Checking services...
> Checked 6766 services.
> (other checks)
> Checking misc settings...
>
> Total Warnings: 0
> Total Errors: 0
>
> Things look okay - No serious problems were detected during the
> pre-flight check
> ----
>
> So even though it found those duplicate definitions, it still said
> "Total Warnings: 0" at the end. Is that a bug? I've had a quick look
> in Tracker and can't see anything similar, not sure If I'm looking in
> the right place though.
This is not new... I have this behavior on 3.0.1-cvs and IIRC I saw that
on 2.x as well. I believe these warning are generated while expanding
tamplates, while the stats are generated while verifying/registering the
config. It shouldn't be hard to get these warnings counted.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkspPCYACgkQ6dZ+Kt5BchY4IACcCJk6Y+fsXvYxUrduoSsErE92
2vUAn02Qihl/sbe0ofzT+if7FnlcMTvK
=bPJC
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
More information about the Developers
mailing list