summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
3 daysTransform output format to a global stateLorenz Kästle2-4/+15
This commit removes the format parameter from the mp_check object and creates a module global variable instead. This prevents thread safe usage of different mp_check objects which should likely not present a big problem for now. The reason for this change is effectively the very same, the format was lost if an exit was triggered by a signal handler (timeout in this example).
2025-02-20Rename icingaweb2 format to multi-lineLorenz Kästle2-6/+6
2025-02-20Remove output formats one-line and summary-onlyLorenz Kästle2-45/+0
2025-02-19Remove errornously commited fileLorenz Kästle1-0/+0
2025-02-19Implement JSON serialising of perfdataLorenz Kästle1-1/+102
2025-02-19Use asprintf in lib directly instead of xasprintfLorenz Kästle2-34/+34
2025-02-19Ignore generated stuff for vendored stuff in libLorenz Kästle2-170/+0
2025-02-19Maybe fix compilation errorsLorenz Kästle1-1/+0
2025-02-19Add new files to EXTRA_DISTLorenz Kästle1-1/+14
2025-02-19Fix one-line formattingLorenz Kästle1-2/+11
2025-02-19Exit with 0 in JSON-format if everything else worksLorenz Kästle1-0/+4
2025-02-18Implement 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()