Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2025-09-08 | check_snmp: refactoring + fixes | Lorenz Kästle | 1 | -415/+363 | |
This commit moves the state retention logic to check_snmp as it is only used there and I do not want it to be used at all, so it doesn't get a place in the lib. Otherwise this adapts tests and fixes the rate computing in the refactored version of check_snmp. Also fixes some bugs detected with the tests | |||||
2025-09-01 | check_snmp: improve string quoting in result | Lorenz Kästle | 1 | -1/+16 | |
2025-08-30 | check_snmp: Small improvements + fix dereference bug | Lorenz Kästle | 1 | -3/+4 | |
2025-08-30 | check_snmp: Fix number processing (offset + multiplier) | Lorenz Kästle | 1 | -13/+58 | |
2025-08-30 | check_snmp: implement output format setting | Lorenz Kästle | 1 | -15/+43 | |
2025-08-29 | check_snmp: Make linter happy | Lorenz Kästle | 1 | -22/+28 | |
2025-08-29 | check_snmp: Remove options description for input delimiter | Lorenz Kästle | 1 | -6/+0 | |
2025-08-28 | check_snmp: fix DES availability detection(?) | Lorenz Kästle | 1 | -3/+3 | |
2025-08-28 | check_snmp: formatting | Lorenz Kästle | 1 | -2/+2 | |
2025-08-28 | check_snmp: Test for availability of DES privacy protocol | Lorenz Kästle | 1 | -3/+18 | |
2025-08-27 | check_snmp: use snmp v2c if community is given | Lorenz Kästle | 1 | -0/+8 | |
2025-08-27 | Fix one more typo | Lorenz Kästle | 1 | -1/+1 | |
2025-08-27 | check_snmp: fix typos | Lorenz Kästle | 1 | -6/+6 | |
2025-08-27 | check_snmp: declare internal functions static | Lorenz Kästle | 1 | -2/+2 | |
2025-08-27 | check_snmp: remove leftover multiply function | Lorenz Kästle | 1 | -48/+0 | |
2025-08-27 | check_snmp: Improve error handling | Lorenz Kästle | 1 | -6/+15 | |
2025-08-27 | check_snmp: rebuild threshold parsing | Lorenz Kästle | 1 | -18/+8 | |
2025-08-25 | rebuild check_snmp | Lorenz Kästle | 1 | -926/+728 | |
2024-10-31 | check_snmp: style + linter fixes | RincewindsHat | 1 | -26/+30 | |
2024-10-31 | check_snmp: update copyright | RincewindsHat | 1 | -2/+2 | |
2024-10-31 | check_snmp: clang-format | RincewindsHat | 1 | -627/+586 | |
2024-09-27 | check_snmp: Remove unused PP-macros | RincewindsHat | 1 | -2/+0 | |
2024-09-27 | check_snmp: Declare most variables as static | RincewindsHat | 1 | -78/+78 | |
2024-05-21 | Fix typos | RincewindsHat | 1 | -2/+2 | |
2024-05-21 | Add more documentation to the help page of check_snmp regarding ↵ | RincewindsHat | 1 | -4/+6 | |
authentication and privacy options | |||||
2023-12-29 | check_snmp: Remove unused variable | RincewindsHat | 1 | -4/+0 | |
2023-10-19 | Fix fallout of the previous changes | RincewindsHat | 1 | -2/+2 | |
2023-10-19 | Fixes for -Wsign-compare | RincewindsHat | 1 | -13/+18 | |
2023-10-18 | check_snmp: Use C99 booleans | RincewindsHat | 1 | -6/+6 | |
2023-08-30 | Merge branch 'master' into compiler_warning_part_5 | Lorenz Kästle | 1 | -21/+42 | |
2023-08-28 | Remove dead, commented code | Lorenz Kästle | 1 | -9/+0 | |
2023-08-27 | Implement option to ignore mib file parsing errors | RincewindsHat | 1 | -17/+47 | |
2023-07-23 | Merge branch 'master' into compiler_warning_part_5 | Lorenz Kästle | 1 | -0/+1 | |
2023-07-11 | Detect if fmtstr was set in edge cases | Lorenz Kästle | 1 | -2/+4 | |
2023-04-18 | Fixes for Waddress | RincewindsHat | 1 | -3/+5 | |
* check_snmp: Fix string comparison | |||||
2023-04-18 | Fixes for -Wimplicit-fallthrough | RincewindsHat | 1 | -0/+1 | |
2023-04-14 | Fix a lot of typos reported by codespell | Jan Wagner | 1 | -1/+1 | |
2023-03-27 | simplify code | Sven Nierlein | 1 | -4/+1 | |
if statement is always true at this point, so remove it. | |||||
2023-03-15 | check_snmp: disable multiplier when unused | Sven Nierlein | 1 | -4/+9 | |
- if no multiplier is set, simply return the given string. Otherwise we would strip off the unit. - if used, allocate new space to hold the result which might be larger than the initial input Signed-off-by: Sven Nierlein <sven@consol.de> | |||||
2023-01-20 | fix check_snmp regex matches | Sven Nierlein | 1 | -2/+21 | |
the multiplier function always tried to extract a number, even if the result is a string because of using a mib. before: ``` ./check_snmp -H hostname -P2c -c public -o IF-MIB::ifAdminStatus.11466 -vvv -r 0 /usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 2c [context] [authpriv] 10.0.13.11:161 IF-MIB::ifAdminStatus.11466 IF-MIB::ifAdminStatus.11466 = INTEGER: up(1) Processing oid 1 (line 1) oidname: IF-MIB::ifAdminStatus.11466 response: = INTEGER: up(1) SNMP OK - 0 | IF-MIB::ifAdminStatus.11466=0;; ``` the regexp 0 matches, even if the actual result is "up(1)". after this patch: ``` ./check_snmp -H hostname -P2c -c public -o IF-MIB::ifAdminStatus.11466 -vvv -r 0 /usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 2c [context] [authpriv] 10.0.13.11:161 IF-MIB::ifAdminStatus.11466 IF-MIB::ifAdminStatus.11466 = INTEGER: up(1) Processing oid 1 (line 1) oidname: IF-MIB::ifAdminStatus.11466 response: = INTEGER: up(1) SNMP CRITICAL - *up(1)* | ``` | |||||
2022-12-22 | check_snmp: always apply format when applying multiplier | Sven Nierlein | 1 | -1/+5 | |
2022-12-22 | add 'multiplier' to modify current value | Wolfgang Nieder | 1 | -23/+61 | |
2022-07-24 | check_snmp: Segfault if number of processed lines is greater than number of ↵ | adrb | 1 | -1/+1 | |
thresholds Segfault at line 489 if number of processed lines is greater than number (#1589) of thresholds Co-authored-by: Lorenz <12514511+RincewindsHat@users.noreply.github.com> | |||||
2022-01-14 | Updated int state to human readable | Ken D | 1 | -1/+1 | |
2022-01-14 | Added option for null zero length string exit codes | Ken D | 1 | -3/+27 | |
When using a large distributed network with the same group of checks used against a large number of devices, occationally there are missing cards in a few devices that are present in other devices. Rather than having a large number of unknown results, disable active checking on those large number of result or having to create a unique check configuration for those devices. This option allows you to select an OK, WARNING, CRITICAL or UNKNOWN status while still retaining the default behavior when not present. This also allows a for the check to immediately start checks as intended should the hardware be added that the check is looking for. | |||||
2021-11-19 | Fix option description authpassword -> authpasswd | Lorenz Kästle | 1 | -1/+1 | |
2021-11-19 | Revert "Fixed option description authpassword -> authpasswd + whitespaces" | Lorenz Kästle | 1 | -20/+20 | |
This reverts commit b27e639725f680411aaa78dd9aa59cfff84ad0c5. | |||||
2021-11-19 | Fixed option description authpassword -> authpasswd + whitespaces | Lorenz Kästle | 1 | -20/+20 | |
2021-11-17 | check_snmp: fix performance thresholds when using multiple oids | Sven Nierlein | 1 | -2/+7 | |
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-04-07 | Merge pull request #1465 from lausser/master | Sven Nierlein | 1 | -2/+3 | |
check_snmp: put the "c" (to mark a counter) after the perfdata value |