hirose31 / nagios-check_snmp-regexwarn

add feature that returns WARNING state if matched regex to check_snmp. like -r(-R) option.

This URL has Read+Write access

name age message
file README.markdown Wed May 27 19:55:42 -0700 2009 added README [hirose31]
file check_snmp.c Tue Oct 13 02:05:14 -0700 2009 merged [hirose31]
directory t/ Mon May 25 21:48:56 -0700 2009 added test case for warn regex option [hirose31]
README.markdown

nagios-check_snmp-regexwarn

This is extended check_snmp plugin to return WARNING state if regular expression matches.

usage

provides -g (-G) option just like -r (-R) option.

example:

check_command  check_snmp -P 1 -C public -H $HOSTADDRESS$ -o extOutput.1 -r OK -g VERYFY

return OK state if output string of extOutput.1 matches "OK". return WARNING state if output matches "VERIFY". return CRITICAL state if output does not match neither "OK" nor "VERIRY".