Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 24018f515110711ef9a423d6a856b4311fcfafea
https://github.com/tribe29/checkmk/commit/24018f515110711ef9a423d6a856b4311…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-07 (Mon, 07 Sep 2020)
Changed paths:
M cmk/base/automations/check_mk.py
M cmk/base/data_sources/_data_sources.py
M cmk/base/inventory.py
M cmk/base/modes/check_mk.py
M cmk/fetchers/_base.py
M cmk/fetchers/controller.py
M tests/unit/cmk/base/data_sources/test_host_sections.py
M tests/unit/cmk/base/test_automations_check_mk.py
M tests/unit/cmk/base/test_modes_check_mk.py
M tests/unit/cmk/fetchers/test_fetchers.py
Log Message:
-----------
Hand over mode to fetcher
The cache needs to have a mode where it writes it's information to the
cache, but does not read from the cache (except in simulation mode). In
1.6 this was realized in `DataSource._read_cache_file` by the
condition:
```
if not self._may_use_cache_file and not config.simulation_mode:
```
The flag self._may_use_cache_file was removed from the cache during some
refactorings, but in fact we still need to be able to make this decision.
This commit makes it possible again by handing over the mode known to
the caller to the `fetch` method. It then decides how to deal with the
cache.
With this change counter based checks will start working, because the
check results are not based on cached data anymore.
Change-Id: Id2587d5c4ad71d2e609283cf8ee6f5151a6e648b
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 5acb66549efab67ac74bc794acc9d5d7cfae4098
https://github.com/tribe29/checkmk/commit/5acb66549efab67ac74bc794acc9d5d7c…
Author: Frans Fürst <frans.fuerst(a)tribe29.com>
Date: 2020-09-04 (Fri, 04 Sep 2020)
Changed paths:
R checks/canon_pages
R checks/printer_pages
R checks/printer_pages.include
R checks/printer_pages_ricoh
A cmk/base/plugins/agent_based/printer_pages.py
A cmk/base/plugins/agent_based/printer_pages_canon.py
A cmk/base/plugins/agent_based/printer_pages_ricoh.py
M cmk/base/plugins/agent_based/utils/printer.py
M tests/testlib/base.py
M tests/unit/checks/test_generic_legacy_conversion.py
A tests/unit/cmk/base/plugins/agent_based/test_printer_pages.py
Log Message:
-----------
printer_pages: migrate to new API
Change-Id: I1a5b088024be207866f7fedd43d4586c752829e1
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: ab14526556c8ccaf38456ce3b3ff78843bb9918c
https://github.com/tribe29/checkmk/commit/ab14526556c8ccaf38456ce3b3ff78843…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-04 (Fri, 04 Sep 2020)
Changed paths:
M cmk/base/plugins/agent_based/inv_checkmk.py
Log Message:
-----------
inventory_checkmk: Make compatible with checker/fetcher mode
Set Checkmk helper usage to 0.0 when checker/fetcher mode is enabled.
There is no Checkmk helper running in this mode.
Same as in b73c3b19e8505fbbb22a1f77747e4cabcf78b5da for the
livestatus_status.py check plugin.
Change-Id: Ib53e5450f2eb687718549019337e677b4c74a7f7