Nagios v3 minor fixes
Thomas Guyot-Sionnest
thomas at zango.com
Tue Jan 15 20:27:46 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thomas Guyot-Sionnest wrote:
> Hi,
>
> Today I decided to get my hands dirty and try my biggest Nagios server's
> config running on Nagios 3. So far the process went pretty smoothly and
> I'm quite impressed about the performance (All tweaks enabled), but I
> noticed the following things:
>
> [...]
>
Adding some more:
In http://nagios.sourceforge.net/docs/3_0/distributed.html, "Freshness
Checking" section, you should use check_dummy rather than some custon
check script. Not only it will be much faster, it's also easier as you
can set the arguments directly in Nagios:
define command{
command_name service-is-stale
command_line /usr/local/nagios/libexec/check_dummy 3 "UNKNOWN: Service
results are stale"
}
Although I personally do "check_dummy $ARG1$ "$ARG2$"" and set the
arguments from the check command; that way I have control over what
should be returned (WARNING,CRITICAL or UNKNOWN).
V2 can be modified as well...
- -----
If I create a precache object file (nagios -pv) and compare it to the
object.cache (same config, created with "nagios -d"), it match but the
date in the commented header. However if I activate it (nagios -xud) the
objects.cache gets all reversed and objects are shown in reverse
alphabetical order in the cgi. I won't have much use for that yet, but I
tried it that's my results (i guess that's not expected)...
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHjQky6dZ+Kt5BchYRAp09AKCgqCclvXOA5fzQm1F/S4kFjzZW0gCgqxSz
6UvsZv7dojDXXqEcL0aoIPw=
=8APq
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list