summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
5 daysMaybe fix compilation errorsLorenz Kästle1-1/+0
5 daysAdd new files to EXTRA_DISTLorenz Kästle1-1/+14
5 daysFix one-line formattingLorenz Kästle1-2/+11
5 daysExit with 0 in JSON-format if everything else worksLorenz Kästle1-0/+4
6 daysImplement new output functionalityLorenz Kästle19-71/+5531
2024-11-09Fix argument order of calloc on several occasionsLorenz Kästle1-1/+1
2024-10-31lib: clang-format for headers tooRincewindsHat1-1/+5
2024-10-31lib: clang-formatRincewindsHat12-141/+203
2024-10-17lib: Update copyrightLorenz Kästle8-7/+26
2024-10-17lib: clang-formatLorenz Kästle24-1808/+1538
2024-01-07Ini Parser: Avoid freeing symbols from text section by remembering where ↵RincewindsHat1-9/+23
they are from
2023-10-19Fixes for -Wsign-compareRincewindsHat3-4/+3
2023-10-18Include maxfd.h in lib MakefileRincewindsHat1-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-16Fixes for compiler warning -WparenthesesRincewindsHat2-4/+4
2023-10-15Replace all old school booleans in lib witch C99 onesRincewindsHat8-116/+104
2023-10-15Whitespace fixes in libRincewindsHat16-106/+104
2023-09-30Fix typoLorenz Kästle1-1/+1
2023-09-30Document new np_add_regex more and add error handlingLorenz Kästle1-4/+29
2023-09-28Introduce np_find_regmatch()Alexander A. Klimov2-0/+26
2023-09-28Introduce np_add_regex()Alexander A. Klimov2-0/+12
2023-09-28Introduce regex_listAlexander A. Klimov1-0/+6
2023-09-23Remove check for RETSIGTYPE in autoconf stuffRincewindsHat1-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-23Merge pull request #1924 from RincewindsHat/compiler_warnings_4_1Lorenz Kästle4-9/+43
Centralise and refactor maxfd related functionality
2023-09-23open_max is a library function now, it should be mp_open_maxRincewindsHat3-6/+6
2023-09-22Place _cmd_pids in object not header to avoid unsused variablesRincewindsHat2-9/+10
2023-09-22fixup! Rework maxfd/open_max to avoid unused variablesRincewindsHat2-0/+35
2023-09-22Rework maxfd/open_max to avoid unused variablesRincewindsHat2-9/+8
2023-09-21Merge branch 'master' into compiler_warning_part_3Lorenz Kästle1-4/+0
2023-07-23Use memory on stack instead of heap for temporary variablesRincewindsHat1-5/+1
2023-06-28Merge branch 'master' into compiler_warning_part_3waja2-12/+13
2023-06-28Merge branch 'master' into compiler_warning_part_5waja2-12/+13
2023-05-10avoid mounting when searching for matching mount pointsStefan Taferner1-8/+9
2023-04-18Fixes for -Wnonnull-compareRincewindsHat1-4/+0
2023-04-18Fix hash creationRincewindsHat1-3/+15
2023-04-18Use default OPENSSL sha functions if availableRincewindsHat2-9/+22
2023-04-18Fixes for -WunusedRincewindsHat1-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-14Fix a lot of typos reported by codespellJan Wagner7-15/+15
2023-02-19Merge remote-tracking branch 'origin/master' into ↵Kristian Schuster5-9/+15
feature_check_disk_add_ignore_missing_option
2023-02-19utils_disk: add name_prev pointer to struct parameter_listKristian Schuster2-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-01Fix hashes in tests since we are using sha256 nowLorenz Kästle1-3/+3
2023-02-01Also link LIB_CRYPTO against testsLorenz Kästle1-1/+1
2023-01-31Replace sha1 with sha256 in utils_baseRincewindsHat2-5/+5
2022-12-13check_disk: Find accessible mount path if multiple are available (#1820)christian-21-0/+6
* fixes #1819 * mount entries also have to be accessible according to get_fs_usage()
2021-11-17check_snmp: fix performance thresholds when using multiple oidsSven Nierlein2-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-26Switch to uint64_tRincewindsHat1-1/+1
2019-02-19Merge pull request #1567 from vdanjean/masterSven Nierlein2-1/+4
[check_disk] add support to display inodes usage in perfdata
2019-02-15check_by_ssh: fix child process leak on timeoutsSven Nierlein4-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 perfdataVincent Danjean2-1/+4
This is not enabled by default It can be enabled with the -P (--iperfdata) option
2018-09-29Avoid passing NULL to vprintf().Guido Falsi1-4/+7
2014-11-28make constants from maxfd values (#1300)Sven Nierlein1-4/+6
its good practice to use constants instead of (random) values. Signed-off-by: Sven Nierlein <sven@nierlein.de>