monitoring-plugins/lib
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
..
tests Add UID to state retention file path 2014-06-21 15:15:44 +02:00
extra_opts.c Minor fixes to be amended into "rename" commit 2014-01-20 03:01:55 +01:00
extra_opts.h Project rename initial commit. 2014-01-19 14:18:47 -05:00
Makefile.am build - avoid deprecated INCLUDES 2014-03-09 11:02:18 +01:00
parse_ini.c lib/parse_ini.c: Print proper read error message 2014-06-18 23:42:57 +02:00
parse_ini.h lib/parse_ini.[ch]: Change code formatting 2014-06-18 10:37:10 +02:00
utils_base.c check_snmp: fix performance thresholds when using multiple oids 2021-11-17 14:04:09 +01:00
utils_base.h check_snmp: fix performance thresholds when using multiple oids 2021-11-17 14:04:09 +01:00
utils_cmd.c check_by_ssh: fix child process leak on timeouts 2019-02-15 10:36:28 +01:00
utils_cmd.h check_by_ssh: fix child process leak on timeouts 2019-02-15 10:36:28 +01:00
utils_disk.c [check_disk] add support to display inodes usage in perfdata 2018-12-08 22:44:42 +01:00
utils_disk.h Switch to uint64_t 2021-10-26 17:07:09 +02:00
utils_tcp.c Project rename initial commit. 2014-01-19 14:18:47 -05:00
utils_tcp.h check_tcp: Properly deal will partial recv(3)s 2013-09-12 21:37:20 +02:00