Commit graph

8 commits

Author SHA1 Message Date
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