Code

check_snmp: Make use of standard threshold functions
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Thu, 28 May 2009 00:52:55 +0000 (20:52 -0400)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Thu, 28 May 2009 12:10:49 +0000 (08:10 -0400)
commit7cb3ae09334796f3b54e4e6438e38c2cc679b360
tree398eb8bf5f022b4d5d158fcf9d39be664dd4fa59
parent34fe4d62fe79236d0cd560f06f6e93bf46a41dd0
check_snmp: Make use of standard threshold functions

This patch makes use of standard threshold functions. This allows using
doubles as thresholds.

Since SNMP supports only integers, double precision numbers are only
printed when parsed from a STRING type.

In addition, support for printing properly Timeticks type has been added,
and the code has been thoroughly cleaned.
NEWS
lib/utils_base.h
plugins/check_snmp.c
plugins/t/check_snmp.t