[Nagiosplug-devel] [RFC] Handling of default ini config in Nagios::Plugin
Thomas Guyot-Sionnest
dermoth at aei.ca
Thu Jan 22 07:56:52 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I just realized the C plugin's extra-opts was totally silent if it
couldn't find the default files, even though it dies (UNKNOWN) on
section not found.
I looked at Nagios::Plugin as a reference and this one used croak()
which returned a status of 2 (CRITICAL).
In my latest commit here I made it return UNKNOWN, though I'm wondering
if there is a better way to do it:
http://solaris.beaubien.net/cgi-bin/gitweb.cgi?p=Nagios-Plugin-dermoth.git;a=summary
While we're at it, shall we debate on whenever the plugins should die or
ignore when they can't find their file/section? If we don't, should it
apply only on implicit files/sections (--extra-opts without arguments)
or even if section/file is specified explicitely?
Note that it's not possible to add empty sections neither
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJeBi06dZ+Kt5BchYRAhVOAJwNbwVx59QvI8+OAyNFv8DFBbLmtACgzyXz
vcwkeHO9bIWRj2D+tRngavY=
=5tvW
-----END PGP SIGNATURE-----
More information about the Devel
mailing list