[nagios-plugins] Handle negative values properly with check_snmp (#1215)

Stephane Lapie notifications at github.com
Fri Nov 15 03:13:42 CET 2013

check_snmp becomes capable of evaluating negative values properly, but it might be returning CRITICALs where it used to return OK and was ignored, if a negative value turns out to actually be a valid value.

If negative values are actually valid, this can be worked around, by adding "~:" to the warning/critical threshold : 100 -> ~:100
You can merge this Pull Request by running:

  git pull https://github.com/darksoul42/nagios-plugins maint

Or you can view, comment on it, or merge it online at:


-- Commit Summary --

  * Handle negative values properly with check_snmp

-- File Changes --

    M lib/utils_base.h (2)
    M plugins/check_snmp.c (2)

-- Patch Links --

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20131114/42cee79f/attachment.html>

More information about the Devel mailing list