Commit graph

22 commits

Author SHA1 Message Date
Lorenz Kästle
e964c33954 lib: implement functionality to set ok summary 2026-05-30 14:43:41 +02:00
Lorenz Kästle
44e1913da4
Error summary (#2259)
Some checks failed
Tests Debian:Testing and Fedora:Rawhide / Running unit and integrationt tests (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running rpm build test on fedora:rawhide (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Spellcheck / codespell (push) Has been cancelled
Tests / Running unit and integrationt tests (push) Has been cancelled
Tests / Running rpm build test on almalinux:9 (push) Has been cancelled
Tests / Running rpm build test on fedora:latest (push) Has been cancelled
Tests / Running rpm build test on rockylinux:8 (push) Has been cancelled
* lib: properly name function to set summary

* lib: set first non-ok subcheck as the summary for the overall check

* Fetch summarily recursively from failed subchecks

---------

Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
2026-05-30 12:30:39 +02:00
Lorenz Kästle
5ccce85495
Fix/check load inconsistencies (#2267)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Spellcheck / codespell (push) Waiting to run
Tests / Running unit and integrationt tests (push) Waiting to run
Tests / Running rpm build test on almalinux:9 (push) Waiting to run
Tests / Running rpm build test on fedora:latest (push) Waiting to run
Tests / Running rpm build test on rockylinux:8 (push) Waiting to run
* Remove redundant new line in multi-line outputs

* check_load: Fix missing brace in output

* check_load: rename function to properly indicate purpose

* check_load: show the correct amount of procs

* check_load: allow execution without parameters

---------

Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
2026-05-19 09:18:20 +02:00
Lorenz Kästle
9980e78850
Add option to override output for check in lib for check_by_ssh (#2230)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Spellcheck / codespell (push) Waiting to run
Tests / Running unit and integrationt tests (push) Waiting to run
Tests / Running rpm build test on almalinux:9 (push) Waiting to run
Tests / Running rpm build test on fedora:latest (push) Waiting to run
Tests / Running rpm build test on rockylinux:8 (push) Waiting to run
The new output functionality was discussed in the context of
check_by_ssh, where it mostly adds more stuff which was seen as
not inherently usefull as a succesful check_by_ssh check
might as well be transparent.
2026-04-06 12:17:43 +02:00
Lorenz Kästle
2d4f98f50b
Remove troublesome symbols from output (#2240)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Spellcheck / codespell (push) Has been cancelled
Tests / Running unit and integrationt tests (push) Has been cancelled
Tests / Running rpm build test on almalinux:9 (push) Has been cancelled
Tests / Running rpm build test on fedora:latest (push) Has been cancelled
Tests / Running rpm build test on rockylinux:8 (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running unit and integrationt tests (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running rpm build test on fedora:rawhide (push) Has been cancelled
Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
2026-03-16 12:28:25 +01:00
Dirk Mueller
423d0c5267
Fix a few typos (#2231) 2026-02-16 11:21:21 +01:00
Lorenz Kästle
3e8cef3721 Compute numbers in output summary correctly 2026-01-14 17:28:51 +01:00
Lorenz Kästle
7ab5b3ba34
lib: properly separate perfdata from different sub subchecks (#2197)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Spellcheck / codespell (push) Has been cancelled
Tests / Running unit and integrationt tests (push) Has been cancelled
Tests / Running rpm build test on almalinux:9 (push) Has been cancelled
Tests / Running rpm build test on fedora:latest (push) Has been cancelled
Tests / Running rpm build test on rockylinux:8 (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running unit and integrationt tests (push) Has been cancelled
Tests Debian:Testing and Fedora:Rawhide / Running rpm build test on fedora:rawhide (push) Has been cancelled
Previously there was a space missing between perfdata from differen sub subchecks which irritated my monitoring system and caused it to interpet two data points as one.
This puts the space back in there.
2025-12-04 15:31:22 +01:00
Lorenz Kästle
802e46f8ea Run clang-format again 2025-09-15 12:59:37 +02:00
Lorenz Kästle
92c7b91002 Merge branch 'master' into refactor/check_load 2025-07-06 22:49:04 +02:00
Lorenz Kästle
bb4ce15997 Make multiline output look better 2025-07-06 22:47:01 +02:00
Lorenz Kästle
b71cb430cb Implement flexible state override functions 2025-06-19 01:15:11 +02:00
Lorenz Kästle
f413ac38e3 Add selectable level of detail for output 2025-03-30 22:34:42 +02:00
Lorenz Kästle
f84f614f21 Bugfix in output 2025-03-30 22:34:20 +02:00
Lorenz Kästle
72fd885f4f Transform output format to a global state
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-03-07 23:38:50 +01:00
Lorenz Kästle
1d590a0efe Rename icingaweb2 format to multi-line 2025-02-20 23:52:32 +01:00
Lorenz Kästle
3cd29d86cc Remove output formats one-line and summary-only 2025-02-20 23:45:13 +01:00
Lorenz Kästle
90b7df9980 Implement JSON serialising of perfdata 2025-02-19 18:28:50 +01:00
Lorenz Kästle
24f21473fb Use asprintf in lib directly instead of xasprintf 2025-02-19 16:59:32 +01:00
Lorenz Kästle
6320a4e953 Fix one-line formatting 2025-02-19 11:50:08 +01:00
Lorenz Kästle
24172ca0e0 Exit with 0 in JSON-format if everything else works 2025-02-19 11:49:43 +01:00
Lorenz Kästle
0645c9fc2c Implement new output functionality 2025-02-18 21:58:34 +01:00