monitoring-plugins/plugins/tests
Sven Nierlein 024d268386 check_snmp: fix performance thresholds when using multiple oids
when using check_snmp with multiple oids it simply printed the unparsed content
from -w/-c into the thresholds for each oid. So each oid contained the hole -w
from all oids.

./check_snmp ... -o iso.3.6.1.2.1.25.1.3.0,iso.3.6.1.2.1.25.1.5.0 -w '1,2' -c '3,4'

before:
  SNMP ... | HOST-RESOURCES-MIB::hrSystemInitialLoadDevice.0=393216;1,2;3,4 HOST-RESOURCES-MIB::hrSystemNumUsers.0=24;1,2;3,4

after:
  SNMP ... | HOST-RESOURCES-MIB::hrSystemInitialLoadDevice.0=393216;1;3 HOST-RESOURCES-MIB::hrSystemNumUsers.0=24;2;4

This also applies to fixed thresholds since check_snmp translates negative infinities from: '~:-1' to '@-1:~'
2021-11-17 14:04:09 +01:00
..
certs tests: update expired test certificate 2020-05-15 14:24:18 +02:00
conf Add tests using custom snmp agent 2009-07-31 03:07:38 -04:00
var check_procs: add test for elapsed time 2021-11-01 13:35:11 +01:00
check_curl.t tests: increase startup sleep 2021-05-20 18:04:49 +02:00
check_http.t tests: ignore sigpipes in https test daemon 2021-05-20 20:57:59 +02:00
check_nt.t Fixed crash from check_nt when -H unspecified or given multiple times (sf.net #2731755, debian #521097) 2009-05-01 11:16:37 +02:00
check_procs.t check_procs: add test for elapsed time 2021-11-01 13:35:11 +01:00
check_snmp.t check_snmp: fix performance thresholds when using multiple oids 2021-11-17 14:04:09 +01:00
check_snmp_agent.pl Add tests for negative thresholds in check_snmp 2014-01-31 00:48:49 -05:00