Skip to content

Commit

Permalink
Edit getopts to allow negative lower process counts for warn and crit…
Browse files Browse the repository at this point in the history
… options with spaces between option and value

This allows check_snmp_process.pl -w -1,40 -c -1,50 to work as expected. This should address bug SteScho#24 SteScho#24
  • Loading branch information
PhilipYarra authored Feb 21, 2018
1 parent a8c5173 commit 35d601f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/check_snmp_process.pl
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ sub check_options {
'privpass:s' => \$o_privpass,
'L:s' => \$v3protocols,
'protocols:s' => \$v3protocols,
'c:s' => \$o_crit,
'critical:s' => \$o_crit,
'w:s' => \$o_warn,
'warn:s' => \$o_warn,
'c=s' => \$o_crit,
'critical=s' => \$o_crit,
'w=s' => \$o_warn,
'warn=s' => \$o_warn,
't:i' => \$o_timeout,
'timeout:i' => \$o_timeout,
'n:s' => \$o_descr,
Expand Down

0 comments on commit 35d601f

Please sign in to comment.