Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 578cf652b4e190ff568724c5482aa76afb36c69e
https://github.com/Checkmk/checkmk/commit/578cf652b4e190ff568724c5482aa76af…
Author: Leonardo Petrora <leonardo.petrora(a)checkmk.com>
Date: 2023-11-15 (Wed, 15 Nov 2023)
Changed paths:
M cmk/base/plugins/agent_based/check_mk.py
M tests/unit/cmk/base/plugins/agent_based/test_checkmk.py
M tests/unit/cmk/base/plugins/agent_based/test_section_host_label_doc.py
M tests/unit/cmk/base/test_discovery.py
Log Message:
-----------
Create OS-based labels on hosts
This change will create the following labels on host based on attributes
contained in <<<check_mk>>> section, if present:
* cmk/os_type: from AgentOS attribute
* cmk/os_platform: if provided, from OSPlatform attribute, else from
AgentOS attribute
* cmk/os_name: from OSName attribute
* cmk/os_version: from OSVersion attribute
This change does not disable the labels created by the agent itself,
both family of labels coexist and this is transparent for the user.
CMK-13945
CMK-13946
CMK-13947
Change-Id: I75afde3479dc2b751ce37ee03e8c241c4d7ffbd4
Commit: 7e254871dfef7ad3aa1878a3dd55f2993062e60b
https://github.com/Checkmk/checkmk/commit/7e254871dfef7ad3aa1878a3dd55f2993…
Author: Leonardo Petrora <leonardo.petrora(a)checkmk.com>
Date: 2023-11-15 (Wed, 15 Nov 2023)
Changed paths:
M agents/check_mk_agent.macosx
Log Message:
-----------
Add OSName and OSVersion attributes to check_mk section
The check_mk section handler will take these attributes in order to
generate OS-based labels cmk/os_name and cmk/os_version
CMK-13946
Change-Id: I2610f826652780b019227a7cd9547625f37a684c
Compare:
https://github.com/Checkmk/checkmk/compare/34b71fa18550...7e254871dfef