mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-03 18:49:29 -05:00
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:~' |
||
|---|---|---|
| .. | ||
| tests | ||
| extra_opts.c | ||
| extra_opts.h | ||
| Makefile.am | ||
| parse_ini.c | ||
| parse_ini.h | ||
| utils_base.c | ||
| utils_base.h | ||
| utils_cmd.c | ||
| utils_cmd.h | ||
| utils_disk.c | ||
| utils_disk.h | ||
| utils_tcp.c | ||
| utils_tcp.h | ||