Module: check_mk
Branch: master
Commit: 131b0668f32744e9a553ac40bc3cf5cfbb5eeabb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=131b0668f32744…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 5 20:54:57 2019 +0200
Started implementing host label discovery using the HW/SW inventory
* Implemented the basic mechanism for managing discovered host labels
* The HW/SW inventory can now collect and write out discovered host labels
* It is enabled by default once the HW/SW inventory is enabled. You may
disable this feature using the HW/SW inventory ruleset.
* Added a sample host label discovery to the lnx_distro inventory plugin
* host_config.labels now contains the labels of all currently possible
label sources (explicit config, ruleset, discovery)
CMK-1818
Change-Id: Iffefb2d5aea0f3e598fbc6bc2ad7e573722cbdb7
---
cmk/gui/plugins/wato/inventory.py | 9 ++
cmk/utils/paths.py | 1 +
cmk_base/config.py | 25 +++++-
cmk_base/discovered_host_labels.py | 87 +++++++++++++++++++
cmk_base/inventory.py | 51 +++++++----
inventory/lnx_distro | 5 +-
tests/unit/cmk_base/test_checks.py | 26 ++++++
tests/unit/cmk_base/test_config.py | 12 +++
tests/unit/cmk_base/test_discovered_host_labels.py | 98 ++++++++++++++++++++++
9 files changed, 297 insertions(+), 17 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=131b0668f3…