add feature that returns WARNING state if matched regex to check_snmp. like -r(-R) option.
C Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
t
README.markdown
check_snmp.c

README.markdown

nagios-check_snmp-regexwarn

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

requires

  • nagios-plugin 1.4.14 or higher

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".