<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 22 Jan 2009, at 06:56, Thomas Guyot-Sionnest wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I just realized the C plugin's extra-opts was totally silent if it<br>couldn't find the default files, even though it dies (UNKNOWN) on<br>section not found.<br><br>I looked at Nagios::Plugin as a reference and this one used croak()<br>which returned a status of 2 (CRITICAL).<br><br>In my latest commit here I made it return UNKNOWN, though I'm wondering<br>if there is a better way to do it:<br><br><a href="http://solaris.beaubien.net/cgi-bin/gitweb.cgi?p=Nagios-Plugin-dermoth.git;a=summary">http://solaris.beaubien.net/cgi-bin/gitweb.cgi?p=Nagios-Plugin-dermoth.git;a=summary</a></div></blockquote><div><br></div><div>I think UNKNOWN for any failure relating to the ini files makes sense - these shouldn't be CRITICAL errors.</div></div><div><br></div><div><blockquote type="cite"><div>While we're at it, shall we debate on whenever the plugins should die or<br>ignore when they can't find their file/section? If we don't, should it<br>apply only on implicit files/sections (--extra-opts without arguments)<br>or even if section/file is specified explicitely?<br><br>Note that it's not possible to add empty sections neither</div></blockquote><div><br></div><div>I'm undecided. Any other opinions?</div><div><br></div></div><div>Ton</div><div><br></div></body></html>