[Nagiosplug-devel] [RFC] Handling of default ini config in Nagios::Plugin
Ton Voon
ton.voon at opsera.com
Mon Jan 26 16:35:57 CET 2009
On 22 Jan 2009, at 06:56, Thomas Guyot-Sionnest wrote:
> 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
I think UNKNOWN for any failure relating to the ini files makes sense
- these shouldn't be CRITICAL errors.
> 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
I'm undecided. Any other opinions?
Ton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20090126/c4364942/attachment.html>
More information about the Devel
mailing list