[Nagiosplug-devel] [RFC] Handling of default ini config in Nagios::Plugin
dermoth at aei.ca
Thu Jan 22 07:56:52 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
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:
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Devel