[Nagiosplug-devel] Question about a documentation ambiguity (Thresholds)
Ton Voon
ton.voon at opsera.com
Mon Mar 15 20:46:05 CET 2010
On 15 Mar 2010, at 16:10, Massimiliano Ziccardi wrote:
> Hi all.
>
> What is the right way to handle thresholds when developing Nagios
> plugins?
>
> The documentation (http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
> ) says:
>
> 8x------
> 10:20 Generate an alert if x < 10 or > 20, (outside the range of
> {10 .. 20})
> 8x------
>
> while few rows below says:
>
> 8x------
> check_stuff -c10:20 Critical if "stuff" is 10 to 20
> 8x------
>
> What is the right behaviour? (In my opinion, the second one is much
> clearer, however check_snmp works like described in the first case...)
The 1st is correct. I've updated the docs for the 2nd.
I agree that the 2nd looks much cleaner. We've just not got round to
changing this: http://nagiosplugins.org/rfc/new_threshold_syntax
Ton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20100315/adfdd02b/attachment.html>
More information about the Devel
mailing list