Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: 0c31a97f56e96310ad3bd7e5075666e8ab2b25d2
https://github.com/tribe29/checkmk/commit/0c31a97f56e96310ad3bd7e5075666e8a…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M cmk/utils/rulesets/ruleset_matcher.py
Log Message:
-----------
Cleanup: Fix scope of match functions
Change-Id: I9206ba852ab0c615f96c4b9aed419428a3ccfcf5
Commit: 8a7786524776f311c60dd0fd8f77b821b6ce57cf
https://github.com/tribe29/checkmk/commit/8a7786524776f311c60dd0fd8f77b821b…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M cmk/utils/rulesets/ruleset_matcher.py
Log Message:
-----------
Generalize label match function
To prepare for service rule matching, the host label match function
has been moved to module level and renamed.
Change-Id: Ieab057b08d0c1fdc9dd152b5dccfe493b174d8e6
Commit: 6a6541301a6aa2b0bc67cdf9decc6e5bb1cb20e1
https://github.com/tribe29/checkmk/commit/6a6541301a6aa2b0bc67cdf9decc6e5bb…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M cmk/utils/labels.py
M cmk_base/automations/check_mk.py
M cmk_base/config.py
M cmk_base/core_config.py
M tests/unit/cmk_base/test_config.py
Log Message:
-----------
Cleanup labels_of_service and label_sources_of_service API
Both functions required the service labels as input parameters
since a short time. This was only done this way to be able to
re-use the service labels read from the autochecks of the host
and a bad API for most use cases.
The source label loading logic should be transparent to the call
sites, just like the caching of the persistance logic.
This commit restores the previous API where the call sites only
need the host name and service description. All other needed
information will be gathered by the LabelManager on it's own.
Currently the LabelManager._discovered_labels_of_service() method
is hacked to just make it work. The next commit will move the
autochecks loading logic to cmk.utils, to make it available to the
all components of Checkmk and wrap the code into a manager class
that cares about caching the already read data during runtime.
Change-Id: I75bf9d4296816fca86fea8c359d33ec48bcff574
Commit: 2eac552f4b64580e06994b5e328953feb6fc10f4
https://github.com/tribe29/checkmk/commit/2eac552f4b64580e06994b5e328953feb…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M bin/update_rrd_fs_names.py
M cmk/gui/watolib/rulesets.py
M cmk/utils/labels.py
M cmk_base/autochecks.py
M cmk_base/automations/check_mk.py
M cmk_base/config.py
M tests/testlib/base.py
M tests/unit/cmk_base/test_autochecks.py
Log Message:
-----------
Introduce AutochecksManager
* The AutochecksManger is responsible for reading the configured
autochecks from the disk and caching the autochecks during runtime.
* Changed all call sites of autochecks.read_autochecks_of() to use the
new AutochecksManager.get_autochecks_of().
* Discovered services now need to be accessed through
AutochecksManager.discovered_labels_of()
Change-Id: I2aae957dfeaf37bedf2a769928cf19ce38045f6b
Commit: ef482f7140f413e13558f37ac6929ec27e0bfed6
https://github.com/tribe29/checkmk/commit/ef482f7140f413e13558f37ac6929ec27…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M cmk_base/autochecks.py
Log Message:
-----------
Move read_autochecks_of() and helpers to AutochecksManager
These methods are now all internal helpers of the AutochecksManager.
Use get_autochecks_of() to fetch the autochecks.
Change-Id: I5da49074c44893bd5718db1e5730ad33e16807df
Commit: c473b0ac19dcb30abcacb3df283afeb86042250e
https://github.com/tribe29/checkmk/commit/c473b0ac19dcb30abcacb3df283afeb86…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M cmk/utils/rulesets/ruleset_matcher.py
Log Message:
-----------
Generalize label condition cache ID calculation
To prepare for service label matching, the function to calculate the
label condition cache ID has been moved to module level.
CMK-2402
Change-Id: Ide21a0d72a2b8034c9157002b4d8116fbf7081fe
Commit: b8820827862c9a611006c2a3b7dd4a54af1bc82e
https://github.com/tribe29/checkmk/commit/b8820827862c9a611006c2a3b7dd4a54a…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-23 (Tue, 23 Jul 2019)
Changed paths:
M cmk/utils/rulesets/ruleset_matcher.py
Log Message:
-----------
Cleanup service conditions
Prepare for service label rule conditions.
* Rename service condition to description condition
* Move cache ID calculation to match object
CMK-2402
Change-Id: Ief9feaf21f18fd50617b19a2d3cd37df7f0b652a
Compare:
https://github.com/tribe29/checkmk/compare/095dba6fa6ce...b8820827862c