Module: check_mk
Branch: master
Commit: 8dbee015fa765f78cc794894fec0f318613edd37
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8dbee015fa765f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 27 16:51:42 2018 +0100
Refactored check parameters to new rule group registration
* Refactored all main groups to implement the new rulespec group
registration API. They all base on on the new RulespecGroup() class
* Besides these main groups the checks are members of sub groups. All
subgroups are now explicitly registered and based on the
RulespecSubGroup() class
* 3rd party checks that use either register_rule() or
register_check_parameters() may refer to non standard rulespec groups.
These are created automatically on demand for best compatibility.
Next step is to refactor all the register_rule() and
register_check_parameters() calls to a plugin registry.
Change-Id: Ib2145e5653d181bedbc66c83a881f135672c5c25
---
cmk/gui/plugins/wato/__init__.py | 13 +-
cmk/gui/plugins/wato/active_checks.py | 23 +-
cmk/gui/plugins/wato/check_mk_configuration.py | 255 ++++-
cmk/gui/plugins/wato/check_parameters.py | 941 ++++++++---------
cmk/gui/plugins/wato/datasource_programs.py | 33 +-
cmk/gui/plugins/wato/inventory.py | 26 +-
cmk/gui/plugins/wato/utils/__init__.py | 177 +++-
cmk/gui/wato/__init__.py | 20 +
cmk/gui/wato/mkeventd.py | 22 +-
cmk/gui/watolib.py | 78 +-
tests/unit/cmk/gui/test_watolib.py | 1295 +++++++++++++++++++++++-
11 files changed, 2346 insertions(+), 537 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=8dbee015fa…