Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2025-09-09 | check_http: formatting + no-brainer linter fixes | Lorenz Kästle | 1 | -1767/+1822 | |
2025-09-09 | Adjust number of tests | Lorenz Kästle | 1 | -1/+1 | |
2025-09-09 | Add break statement to switch path | Lorenz Kästle | 1 | -0/+1 | |
2025-09-08 | Little adaptions for old compilers | Lorenz Kästle | 1 | -4/+3 | |
2025-09-08 | Fix spelling ... | Lorenz Kästle | 1 | -1/+1 | |
2025-09-08 | check_snmp: refactoring + fixes | Lorenz Kästle | 9 | -537/+1623 | |
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-08 | snmp: fix complaint of snmpd about paths | Lorenz Kästle | 1 | -1/+1 | |
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 | 3 | -13/+62 | |
2025-08-30 | check_snmp: implement output format setting | Lorenz Kästle | 2 | -15/+46 | |
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 | Build check_snmp unconditionally | Lorenz Kästle | 1 | -2/+3 | |
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: fix/adapt tests | Lorenz Kästle | 1 | -62/+41 | |
2025-08-27 | check_snmp: hopefully fix helpers | Lorenz Kästle | 2 | -32/+41 | |
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 | 5 | -65/+125 | |
2025-08-25 | rebuild check_snmp | Lorenz Kästle | 3 | -926/+838 | |
2025-08-11 | Merge branch 'master' into refactor/check_users | Lorenz Kästle | 34 | -3626/+3689 | |
2025-08-11 | check_users: Use sd_get_uids instead of sd_get_session | Lorenz Kästle | 1 | -1/+1 | |
Previously check_users in combination with systemd used sd_get_sessions (3) to aquire the number of users, probably with the idea that every users opens a session. Turns out, that a user can have multiple sessions and we only really want to know how many users there are. This commit changes to sd_get_uids (3) to achieve that target. | |||||
2025-08-01 | clang-format | Lorenz Kästle | 1 | -29/+43 | |
2025-08-01 | check_ssh: Put variable in the correct scope | Lorenz Kästle | 1 | -2/+1 | |
2025-08-01 | check_ssh: Fix format expression | Lorenz Kästle | 1 | -1/+1 | |
2025-08-01 | check_ssh: fix data type to allow for error checking | Lorenz Kästle | 1 | -2/+2 | |
2025-08-01 | Merge pull request #2133 from rlaager/fix-check_ssh-buffer-overflow | Lorenz Kästle | 1 | -4/+6 | |
Fix check ssh buffer overflow | |||||
2025-07-14 | check_ntp_peer: fix invalid conversion in printf | Lorenz Kästle | 1 | -3/+3 | |
2025-07-11 | check_ssh: Correct type on len variable | Richard Laager | 1 | -1/+1 | |
strlen() returns a size_t. Signed-off-by: Richard Laager <rlaager@wiktel.com> | |||||
2025-07-11 | check_ssh: Fix buffer overflow | Richard Laager | 1 | -3/+5 | |
A buffer overflow was occurring when the server responded with: Exceeded MaxStartups\r\n glibc would then abort() with the following output: *** buffer overflow detected ***: terminated It was the memset() that was overflowing the buffer. But the memmove() needed fixing too. First off, there was an off-by-one error in both the memmove() and memset(). byte_offset was already set to the start of the data _past_ the newline (i.e. len + 1). For the memmove(), incrementing that by 1 again lost the first character of the additional output. For the memset(), this causes a buffer overflow. Second, the memset() has multiple issues. The comment claims that it was NULing (sic "null") the "rest". However, it has no idea how long the "rest" is, at this point. It was NULing BUFF_SZ - byte_offset + 1. After fixing the off-by-one / buffer overflow, it would be NULing BUFF_SZ - byte_offset. But that doesn't make any sense. The length of the first line has no relation to the length of the second line. For a quick-and-dirty test, add something like this just inside the while loop: memcpy(output, "Exceeded MaxStartups\r\nnext blah1 blah2 blah3 blah4\0", sizeof("Exceeded MaxStartups\r\nnext blah1 blah2 blah3 blah4\0")); And, after the memmove(), add: printf("output='%s'\n", output); If you fix the memset() buffer overflow, it will output: output='ext blah1 blah2 blah3 ' As you can see, the first character is lost. If you then fix the memmove(), it will output: output='next blah1 blah2 blah3' Note that this is still losing the "blah4". After moving the memset() after byte_offset is set to the new strlen() of output, then it works correctly: output='next blah1 blah2 blah3 blah4' Signed-off-by: Richard Laager <rlaager@wiktel.com> | |||||
2025-07-06 | check_load: fix tests | Lorenz Kästle | 1 | -3/+3 | |
2025-07-06 | Merge branch 'master' into refactor/check_load | Lorenz Kästle | 21 | -2919/+2595 | |
2025-07-06 | check_load some number type fixes | Lorenz Kästle | 2 | -7/+7 | |
2025-07-06 | check_load: Add top x functionality to output | Lorenz Kästle | 1 | -1/+3 | |
2025-07-06 | check_load: remove useless code and do some formatting | Lorenz Kästle | 1 | -13/+23 | |
2025-06-28 | Merge branch 'master' into refactor/check_procs | Lorenz Kästle | 38 | -3730/+4034 | |
2025-06-20 | Merge pull request #2125 from RincewindsHat/refactor/check_icmp | Lorenz Kästle | 1 | -1/+1 | |
Refactor check_icmp: - Far less global variables - Proper IPv6/legacy IP dual stack functionality (allowed mixed v4/v6 hosts) - Improved readability/understandability - General cleanup | |||||
2025-06-12 | Remove options if fping version is too low and die directly | Lorenz Kästle | 1 | -1/+5 | |
2025-06-12 | Remove unnecessary newline | Lorenz Kästle | 1 | -1/+0 | |
2025-06-12 | check_fping: small style improvement | Lorenz Kästle | 2 | -3/+3 | |
2025-06-12 | Implement new fping options for fping 5.2 and 5.3 | Lorenz Kästle | 2 | -8/+96 | |
fping 5.2 and 5.3 add some new useful command line options which this commit add to check_fping. These are: * --fwmark - sets a firewall mark in the packages to make them identifiable (fping 5.2) * --icmp-timestamp - fping uses ICMP timestamp instead of ICMP Echo (fping 5.2) * --check-source - fping discards replies which originate not from the target address (fping 5.2) The fping release notes describe theses options ( https://github.com/schweikert/fping/releases ) in a little bit more detail. Currently the help display for those options is only shown when fping was available in the appropriate version during compilation. | |||||
2025-05-18 | utils: Make fmt function for compiler | Lorenz Kästle | 1 | -1/+1 | |
2025-05-07 | Remove un-needed flags | William | 1 | -42/+0 | |