Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: 348030de521589c4204074586f2bedf163f3ad02
https://github.com/tribe29/checkmk/commit/348030de521589c4204074586f2bedf16…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk_base/autochecks.py
M tests/testlib/base.py
M tests/unit/cmk_base/test_autochecks.py
Log Message:
-----------
Fix AutochecksManager.discovered_labels_of
Skip computing unused effective check parameters for autochecks
in discovered_labels_of().
discovered_labels_of called _read_autochecks which was computing
the effective check parameter of all autochecks. To do this it is
necessary to process service rulesets which all could use service
label conditions. This ended up in an endless recursion.
To fix this _read_autochecks_of has now been split into two steps.
The raw autochecks produced by the first step are enough for
discovered_labels_of.
CMK-2402
Change-Id: I283caadac9b9642c140ebba5b7a9990b31c82a6d
Commit: 6795ac65e2c5dace92c9c5247730a4eb2c19317a
https://github.com/tribe29/checkmk/commit/6795ac65e2c5dace92c9c5247730a4eb2…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/utils/rulesets/ruleset_matcher.py
M cmk_base/config.py
M tests/unit/cmk/utils/rulesets/test_ruleset_matcher.py
M tests/unit/cmk_base/test_config.py
Log Message:
-----------
Service labels can now be used as service rule conditions
The matching logic is equal to the host label matching.
CMK-2402
Change-Id: Idb4d88e29a65e9b41d3b7cad10a176aeafe7c209
Commit: be111d1683f560c674f1ea7e25abac008e2916e0
https://github.com/tribe29/checkmk/commit/be111d1683f560c674f1ea7e25abac008…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/watolib/rulesets.py
M cmk/utils/labels.py
Log Message:
-----------
Add service label matching to WATO GUI
The service labels can now be configured as conditions, just like the
host labels.
The rule matching analysis, which is implemented in
watolib.rulesets.Rule._get_mismatch_reasons_of_match_object is not
working yet will be fixed in one of the next commits.
CMK-2402
Change-Id: If283ed2a96ebe767946f6ae22d877cd0f50a5c64
Commit: 0fc1df1bbfb8769d54f2d298b6bf7fac9d91a03e
https://github.com/tribe29/checkmk/commit/0fc1df1bbfb8769d54f2d298b6bf7fac9…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/watolib/rulesets.py
M cmk/utils/rulesets/ruleset_matcher.py
M cmk_base/config.py
M tests/unit/cmk_base/test_config.py
Log Message:
-----------
Remove unused host attributes from RuleMatchObject
The host attributes (folder, labels, tags) are not used during matching
phase of the rule processing. They are already resolved by the ruleset
optimizer to a list of matching host names. For this reason the match
object only needs the host_name attribute for matching the host
conditions.
CMK-2402
Change-Id: Ib73a33fffeae894c8348f40a7934adc5d5517bbd
Commit: bdaa36e3a80e4ec81dc3823a707230f14a31e2bd
https://github.com/tribe29/checkmk/commit/bdaa36e3a80e4ec81dc3823a707230f14…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk_base/autochecks.py
Log Message:
-----------
Cache labels of read autochecks for later use
CMK-2402
Change-Id: I06db8ff641ce026667eebc95b21a4e50d9b7356a
Commit: ac030ac58324132e11f2a5c10f369bc83e79eeda
https://github.com/tribe29/checkmk/commit/ac030ac58324132e11f2a5c10f369bc83…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/watolib/rulesets.py
M cmk/utils/labels.py
A cmk_base/export.py
Log Message:
-----------
Make ruleset match analysis in WATO work - step 1
This is not possible without loading the whole Checkmk base
configuration to get the rulesets, labels and so on.
Using an automation, as we normally do would be a performance overkill.
The component cmk_base now has one module cmk_base.export which exposes
some functionality for other components, like the GUI. This is the same
approach as we use in cmk.ec.export.
We need some more steps to make the analysis really work, like
transporting the service description through several pages of WATO
instead of just the item.
CMK-2402
Change-Id: Iee59a6a3896f4080e227e365b0feaf00ac1da8a2
Commit: 4a8e36224332961646555a6a2a027c780836c224
https://github.com/tribe29/checkmk/commit/4a8e36224332961646555a6a2a027c780…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/wato/pages/object_parameters.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/services.py
M cmk/gui/watolib/rulesets.py
M cmk_base/config.py
M cmk_base/export.py
Log Message:
-----------
Make ruleset match analysis in WATO work - step 2
Care about special case of matching on checkgroup parameter rulesets.
These rulesets do not use the whole service_description as condition,
but only the check item name.
This was working transparently until we need the real service description to
gather the labels of a services for matching on rules that use service labels
as conditions. To make this work we now use a specific helper function
cmk_base.config.ruleset_match_object_for_checkgroup_parameters() to get a
ruleset match object that uses the item as service_description and the real
service_description to get service attributes like the service labels.
CMK-2402
Change-Id: I4ab5dea31ffb9b25783d929d9de281aaa6a751e0
Commit: e1e1bdc8fd09ed548774c2db5b50c1f148c54a99
https://github.com/tribe29/checkmk/commit/e1e1bdc8fd09ed548774c2db5b50c1f14…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/wato/pages/object_parameters.py
M cmk/gui/wato/pages/pattern_editor.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/services.py
M cmk/gui/watolib/rulesets.py
M cmk_base/config.py
M cmk_base/export.py
Log Message:
-----------
Make ruleset match analysis in WATO work - step 3
Transport the real service description together with the check item
through several WATO pages to make both available to the rule analysis
logic of WATO.
With this step the rule analysis is now working again.
CMK-2402
Change-Id: Ie001f93c02a121f96b481144566eb7b6d4de3cb1
Commit: 157ab93f6d66f00d4e9760e27d38c9fa64a42213
https://github.com/tribe29/checkmk/commit/157ab93f6d66f00d4e9760e27d38c9fa6…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/wato/pages/pattern_editor.py
M cmk/gui/watolib/rulesets.py
Log Message:
-----------
Remove odd logwatch pattern test: Logfile matching, but no host name given
Change-Id: I9aeaa558ea2f95aefcaa6971780fefff632bb898
Commit: e49ccfbea9312a5061c08ef316e22d489fc28305
https://github.com/tribe29/checkmk/commit/e49ccfbea9312a5061c08ef316e22d489…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-07-25 (Thu, 25 Jul 2019)
Changed paths:
M cmk/gui/wato/pages/tags.py
M cmk/utils/tags.py
M tests/unit/cmk/utils/test_utils_tags.py
Log Message:
-----------
Cleanup: Module import violation and naming of tag group ID
* Remove cmk.gui import from cmk.utils.tags module. Importing a module
of the cmk.gui component is not allowed from cmk.utils.
* Improved naming of the tag group ID input field title
Change-Id: I7fd24fb6359a16e7f538ee22fcae3fe7f49d7a29
Compare:
https://github.com/tribe29/checkmk/compare/c63605400804...e49ccfbea931