Page 1 of 1

Re: [Nagios-devel] nagios -v not counting all warnings

Posted: Wed Dec 16, 2009 7:59 pm
by Guest
-----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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]