Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-10-18 | Include maxfd.h in lib Makefilerefs/pull/1945/head | RincewindsHat | 1 | -1/+1 | |
This fixes a regression which was introduced with 719e27ddc2f0b48bcd7fe5584b23e3ce83ddf291 It prevents the creation of working release tarballs with the current toolchain. This commit add the header file maxfd.h to list of needed files. | |||||
2023-10-15 | Fixes for compiler warning -Wparenthesesrefs/pull/1939/head | RincewindsHat | 2 | -4/+4 | |
2023-10-15 | Replace all old school booleans in lib witch C99 onesrefs/pull/1937/head | RincewindsHat | 8 | -116/+104 | |
2023-10-15 | Whitespace fixes in lib | RincewindsHat | 16 | -106/+104 | |
2023-09-30 | Fix typo | Lorenz Kästle | 1 | -1/+1 | |
2023-09-30 | Document new np_add_regex more and add error handling | Lorenz Kästle | 1 | -4/+29 | |
2023-09-28 | Introduce np_find_regmatch() | Alexander A. Klimov | 2 | -0/+26 | |
2023-09-28 | Introduce np_add_regex() | Alexander A. Klimov | 2 | -0/+12 | |
2023-09-28 | Introduce regex_list | Alexander A. Klimov | 1 | -0/+6 | |
2023-09-23 | Remove check for RETSIGTYPE in autoconf stuffrefs/pull/1926/head | RincewindsHat | 1 | -1/+1 | |
autoupdate tells me, that since C89 I can safely assume RETSIGTYPE is void. Therefore to simplify things I removed the corresponding configure.ac line and replaced all mentions of RETSIGTYPE with void. | |||||
2023-09-23 | Merge pull request #1924 from RincewindsHat/compiler_warnings_4_1 | Lorenz Kästle | 4 | -9/+43 | |
Centralise and refactor maxfd related functionality | |||||
2023-09-23 | open_max is a library function now, it should be mp_open_maxrefs/pull/1924/head | RincewindsHat | 3 | -6/+6 | |
2023-09-22 | Place _cmd_pids in object not header to avoid unsused variablesrefs/pull/1925/head | RincewindsHat | 2 | -9/+10 | |
2023-09-22 | fixup! Rework maxfd/open_max to avoid unused variables | RincewindsHat | 2 | -0/+35 | |
2023-09-22 | Rework maxfd/open_max to avoid unused variables | RincewindsHat | 2 | -9/+8 | |
2023-09-21 | Merge branch 'master' into compiler_warning_part_3refs/pull/1868/head | Lorenz Kästle | 1 | -4/+0 | |
2023-07-23 | Use memory on stack instead of heap for temporary variables | RincewindsHat | 1 | -5/+1 | |
2023-06-28 | Merge branch 'master' into compiler_warning_part_3 | waja | 2 | -12/+13 | |
2023-06-28 | Merge branch 'master' into compiler_warning_part_5 | waja | 2 | -12/+13 | |
2023-05-10 | avoid mounting when searching for matching mount points | Stefan Taferner | 1 | -8/+9 | |
2023-04-17 | Fixes for -Wnonnull-compare | RincewindsHat | 1 | -4/+0 | |
2023-04-17 | Fix hash creation | RincewindsHat | 1 | -3/+15 | |
2023-04-17 | Use default OPENSSL sha functions if available | RincewindsHat | 2 | -9/+22 | |
2023-04-17 | Fixes for -Wunusedrefs/pull/1866/head | RincewindsHat | 1 | -4/+4 | |
* lib/utils_base.c * plugins/check_curl.c * plugins-root/check_dhcp.c Removed a line which theoretically can not do anything, but there was comment which indicated something else. Still trying this though. | |||||
2023-04-14 | Fix a lot of typos reported by codespellrefs/pull/1864/head | Jan Wagner | 7 | -15/+15 | |
2023-02-19 | Merge remote-tracking branch 'origin/master' into ↵ | Kristian Schuster | 5 | -9/+15 | |
feature_check_disk_add_ignore_missing_option | |||||
2023-02-19 | utils_disk: add name_prev pointer to struct parameter_list | Kristian Schuster | 2 | -2/+18 | |
Also added handling of name_prev in np_add_parameter and np_delete_parameter. This make calling the np_delete_parameter function easier, because it requires the previous element as second argument. | |||||
2023-02-01 | Fix hashes in tests since we are using sha256 now | Lorenz Kästle | 1 | -3/+3 | |
2023-02-01 | Also link LIB_CRYPTO against tests | Lorenz Kästle | 1 | -1/+1 | |
2023-01-31 | Replace sha1 with sha256 in utils_base | RincewindsHat | 2 | -5/+5 | |
2022-12-13 | check_disk: Find accessible mount path if multiple are available (#1820) | christian-2 | 1 | -0/+6 | |
* fixes #1819 * mount entries also have to be accessible according to get_fs_usage() | |||||
2021-11-17 | check_snmp: fix performance thresholds when using multiple oids | Sven Nierlein | 2 | -1/+2 | |
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-10-26 | Switch to uint64_t | RincewindsHat | 1 | -1/+1 | |
2019-02-19 | Merge pull request #1567 from vdanjean/master | Sven Nierlein | 2 | -1/+4 | |
[check_disk] add support to display inodes usage in perfdata | |||||
2019-02-15 | check_by_ssh: fix child process leak on timeoutsrefs/pull/1583/head | Sven Nierlein | 4 | -25/+54 | |
When check_by_ssh runs into a timeout it simply exits keeping all child processes running. Simply adopting the kill loop from runcmd_timeout_alarm_handler() fixes this. Signed-off-by: Sven Nierlein <sven@nierlein.de> | |||||
2018-12-08 | [check_disk] add support to display inodes usage in perfdatarefs/pull/1567/head | Vincent Danjean | 2 | -1/+4 | |
This is not enabled by default It can be enabled with the -P (--iperfdata) option | |||||
2018-09-29 | Avoid passing NULL to vprintf().refs/pull/1552/head | Guido Falsi | 1 | -4/+7 | |
2014-11-28 | make constants from maxfd values (#1300)refs/pull/1304/head | Sven Nierlein | 1 | -4/+6 | |
its good practice to use constants instead of (random) values. Signed-off-by: Sven Nierlein <sven@nierlein.de> | |||||
2014-11-28 | avoid a segfault, if ulimit is set to unlimited | nafets | 1 | -0/+8 | |
2014-10-06 | Revert "Make use of xasprintf instead of asprintf" | Holger Weiss | 1 | -3/+3 | |
This reverts commit a143739ed286cf9ae003792dbb1ce26ce43f3312. Our current setup doesn't allow lib/*.c files to call functions defined in plugins/utils.[ch]. | |||||
2014-07-30 | Make use of xasprintf instead of asprintfrefs/pull/1278/head | Jan Wagner | 1 | -3/+3 | |
--- Closes #1278 | |||||
2014-07-30 | lib/utils_base.c: if asprintf fails, string is undefined | Ricardo Maraschini | 1 | -5/+10 | |
if asprintf fails, string content becomes invalid. we need to check if it ran OK by checking the returned value. in case of fail, asprintf returns -1, otherwise the number of writen bytes is returned. also, on ubuntu 13.10 i've receiving a lot of warnings: "warning: ignoring return value of ‘asprintf’" this patches fixes some of them Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com> --- Closes #1227 | |||||
2014-07-06 | check_icmp/check_dhcp: disable check, if we are root | Jan Wagner | 2 | -16/+0 | |
As it is possible to use capabilities(7) on linux or solaris privileges for example, it is not necessary in all cases to have those binaries making use of setuid. | |||||
2014-06-28 | lib/utils_cmd.c - Free file descriptorrefs/pull/1263/head | Spenser Reinhardt | 1 | -0/+3 | |
Coverity 66502 - File descriptor fd in cmd_file_read is never closed, and thus file is left open after usage throughout runtime. - SR | |||||
2014-06-21 | Add UID to state retention file path | Holger Weiss | 2 | -3/+9 | |
Add the UID of the invoking user to the state retention file path. This helps solving permission issues when different users run the same plugin. | |||||
2014-06-18 | lib/parse_ini.c: Print proper read error message | Holger Weiss | 1 | -1/+2 | |
Print a useful error message if opening the configuration file fails. | |||||
2014-06-18 | lib/parse_ini.c: Drop privileges for reading file | Holger Weiss | 1 | -0/+10 | |
Read the configuration file with privileges temporarily dropped if the code is used by a setuid plugin. | |||||
2014-06-18 | lib/parse_ini.c: Add newline to die() calls | Holger Weiss | 1 | -2/+2 | |
Our die() function doesn't append a newline character to the message. | |||||
2014-06-18 | lib/parse_ini.c: Cosmetic change | Holger Weiss | 1 | -4/+1 | |
Replace an "if" with the ternary operator. | |||||
2014-06-18 | lib/parse_ini.c: Search for INI file in subdirs | Holger Weiss | 1 | -0/+2 | |
Add two path names to the list of default INI file locations, as some users/distributions prefer to put configuration files into subdirectories. |