Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: c10e8556e3836a8d9cd8e35af9286898c4691fcd
https://github.com/Checkmk/checkmk/commit/c10e8556e3836a8d9cd8e35af9286898c…
Author: Sofia Colakovic <sofia.colakovic(a)checkmk.com>
Date: 2023-06-22 (Thu, 22 Jun 2023)
Changed paths:
A .werks/15766
M cmk/base/plugins/agent_based/local.py
M tests/unit/cmk/base/plugins/agent_based/test_local.py
Log Message:
-----------
15766 local: Better error handling for incorrect local checks
Previously, the discovery service would crash in case of incorrect
lines in the local check section. This prevented all other local services
with correct format from being discovered.
Now, the discovery service no longer crashes, the faulty local service is
discovered and it crashes with a helpful message. All other local services
are discovered and their state isn't influenced by the incorrect service.
In case when the item can't be determined from the local section line, the
line is completely ignored.
SUP-14250
Change-Id: Ieb8ae82f07c7c467c5faff57628d5b47a941065f