Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: c6659f46e3df98abcb4ccac915bef9d3f4915adb
https://github.com/tribe29/checkmk/commit/c6659f46e3df98abcb4ccac915bef9d3f…
Author: Mathias Götze <Mathias.Goetze(a)iteratio.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M checks/ucs_bladecenter_faultinst
A cmk/gui/plugins/wato/check_parameters/ucs_bladecenter_faultinst.py
Log Message:
-----------
ucs_bladecenter_faultinst: addition of params for state translation
Change-Id: I45a3eae80f1c4e4d2f6c38f631ddf37f2685e261
Commit: 05b447d979d70cdab6bc773711245c4adde88b61
https://github.com/tribe29/checkmk/commit/05b447d979d70cdab6bc773711245c4ad…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M cmk/fetchers/controller.py
M tests/unit/cmk/fetchers/test_controller.py
Log Message:
-----------
Better typing in FetcherHeader
This patch improves the type safety of FetcherHeader and its callers.
- The fields are now all declared Final.
- The type of the NAME field (now TYPE) was changed
from str to FetcherType.
- run_fetchers now works with FetcherType instead of str as well.
Most of these changes required minor refactorings of the corresponding
unit tests.
CMK-5419
Change-Id: I9b4bd7da941843ceb26a687ed6b1eb2d7a38f0f4
Compare: https://github.com/tribe29/checkmk/compare/f566beed9743...05b447d979d7
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 038cb44d00eec7a8b4f421e972bcd8b3f08112ed
https://github.com/tribe29/checkmk/commit/038cb44d00eec7a8b4f421e972bcd8b3f…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M cmk/update_config.py
Log Message:
-----------
update_config: parse as many autochecks files as possible
If we encounter an exception during rewriting of the autochecks
files, we have already rewritten an undefined number of files.
Instead of aborting mid-rewrite, we now continue to rewrite as
many files as possible before raising an exception providing
a list of files for which the rewriting failed.
Change-Id: Iedbe4e52d2fa7db31dbff869c8b2fd094f6f49f7
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 57a17f981ee9264c404629c9770a35f81c43b6cd
https://github.com/tribe29/checkmk/commit/57a17f981ee9264c404629c9770a35f81…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M cmk/gui/bi.py
M cmk/gui/config.py
M cmk/gui/default_permissions.py
M cmk/gui/gui_background_job.py
M cmk/gui/mobile.py
M cmk/gui/notify.py
M cmk/gui/permissions.py
M cmk/gui/plugins/main_modules/cre.py
M cmk/gui/plugins/views/commands.py
M cmk/gui/plugins/views/crash_reporting.py
M cmk/gui/plugins/views/mkeventd.py
M cmk/gui/plugins/views/utils.py
M cmk/gui/plugins/wato/bi.py
M cmk/gui/plugins/wato/nagvis_auth.py
M cmk/gui/views.py
M cmk/gui/wato/__init__.py
M cmk/gui/wato/mkeventd.py
M cmk/gui/wato/pages/roles.py
M cmk/gui/webapi.py
M tests/unit/cmk/gui/test_gui_config.py
M tests/unit/cmk/gui/test_views.py
M tests/unit/conftest.py
Log Message:
-----------
Refactor permission_registry to objects
All call sites to the registry create instances from the permissions.
Directly getting instances from the registry simplifies the call sites.
This change removes ~600 classes from the GUI code.
Having a dedicated class for each permission is consuming more memory than
having just a number of classes with one instance for each permission.
We now have a single base class `Permission` which is instantiated for
each permission.
Change-Id: I001a8f8966e64a31d74f97b4d9c30de5526085c3
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 337db6cfb4ed9697aae2d7c71560fc6a1645ee48
https://github.com/tribe29/checkmk/commit/337db6cfb4ed9697aae2d7c71560fc6a1…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/base/checking.py
M cmk/base/data_sources/_data_sources.py
M cmk/base/discovery.py
M cmk/fetchers/controller.py
M cmk/fetchers/type_defs.py
Log Message:
-----------
Make `FetcherMessage` type safe
We turn the untyped dict into a named tuple and do not explode the
FetcherHeader type anymore.
CMK-5419
Change-Id: I676dfc54a61fa4e5de4338aba31a8d5c4c94584a
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: a3f8838fed8680e0b9600763628b7638246a1097
https://github.com/tribe29/checkmk/commit/a3f8838fed8680e0b9600763628b76382…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M livestatus/src/Column.cc
M livestatus/src/Column.h
M livestatus/src/TableComments.cc
M livestatus/src/TableDowntimes.cc
M livestatus/src/TableEventConsoleEvents.cc
M livestatus/src/TableHostGroups.cc
M livestatus/src/TableHosts.cc
M livestatus/src/TableHostsByGroup.cc
M livestatus/src/TableLog.cc
M livestatus/src/TableServiceGroups.cc
M livestatus/src/TableServices.cc
M livestatus/src/TableServicesByGroup.cc
M livestatus/src/TableServicesByHostGroup.cc
M livestatus/src/TableStateHistory.cc
M livestatus/src/test/test_CustomVarsDictFilter.cc
Log Message:
-----------
Use lambdas for offset shifting magic instead of non-portable hacks.
This removes most uses of DANGEROUS_OFFSETOF. The rest can be removed by
replacing the OffsetFOOColumns with their lambda-based equivalents.
CMK-5194
Change-Id: I868e9cf47602c4bbe28ec4691fc87481ec3d7e85
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 35ea199111337e7bb1b4cd6ab72474a07542ef5f
https://github.com/tribe29/checkmk/commit/35ea199111337e7bb1b4cd6ab72474a07…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/base/checking.py
M cmk/base/data_sources/_data_sources.py
M cmk/base/discovery.py
M cmk/fetchers/type_defs.py
Log Message:
-----------
Rename FetcherResult -> FetcherMessage
The name `Result` is already heavily overloaded and it should take a new
meaning with the error handling.
Currently, the FetcherResult/FetcherMessage type contains a piece of
FetcherHeader and the fetcher payload in an untyped dict. To proper
handle errors, we need the full FetcherHeader.
It is not really good practice anyway to tear objects appart. This will
be fixed in a comming commit.
This is an automated, mechanical change using `ack | xargs sed`
CMK-5419
Change-Id: I594c5be777cc45f702e613bb6241732c1df67f24
Commit: 83c7211857a4e1715217da3cfea3bf16dff7fd76
https://github.com/tribe29/checkmk/commit/83c7211857a4e1715217da3cfea3bf16d…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M livestatus/src/TableHostsByGroup.cc
M livestatus/src/TableServicesByGroup.cc
M livestatus/src/TableServicesByHostGroup.cc
Log Message:
-----------
No need to copy whole hosts/services around just for grouping.
Improved const-correctness a bit on the way.
Change-Id: I06d3bfadd592a8202087639062e489238c77b126
Compare: https://github.com/tribe29/checkmk/compare/256e347cb8f6...83c7211857a4