[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:
https://github.com/nagios-plugins/nagios-plugins/pull/1215
-- 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 --
https://github.com/nagios-plugins/nagios-plugins/pull/1215.patch
https://github.com/nagios-plugins/nagios-plugins/pull/1215.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20131114/42cee79f/attachment.html>
More information about the Devel
mailing list