<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 15 Mar 2010, at 16:10, Massimiliano Ziccardi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all.<br><br>What is the right way to handle thresholds when developing Nagios plugins?<br><br>The documentation (<a href="http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT">http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT</a>) says:<br> <br>8x------<br>10:20 Generate an alert if x < 10 or > 20, (outside the range of {10 .. 20})<br>8x------<br><br>while few rows below says:<br><br>8x------<br>check_stuff -c10:20 Critical if "stuff" is 10 to 20<br> 8x------<br><br>What is the right behaviour? (In my opinion, the second one is much clearer, however check_snmp works like described in the first case...)<br></blockquote><div><br></div>The 1st is correct. I've updated the docs for the 2nd.</div><div><br></div><div>I agree that the 2nd looks much cleaner. We've just not got round to changing this: <a href="http://nagiosplugins.org/rfc/new_threshold_syntax">http://nagiosplugins.org/rfc/new_threshold_syntax</a></div><div><br></div><div>Ton</div><div><br></div></body></html>