Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: c306adae2b7d788eea0481edbb5e3c946767a35a
https://github.com/tribe29/checkmk/commit/c306adae2b7d788eea0481edbb5e3c946…
Author: Timotheus Bachinger <timotheus.bachinger(a)tribe29.com>
Date: 2021-06-24 (Thu, 24 Jun 2021)
Changed paths:
A .werks/11807
M cmk/base/plugins/agent_based/local.py
A cmk/base/plugins/agent_based/utils/cache_helper.py
M tests/unit/cmk/base/plugins/agent_based/test_local.py
A tests/unit/cmk/base/plugins/agent_based/utils/test_cache_helper.py
Log Message:
-----------
11807 FIX local check: Do not crash on negative timespans
In case a host's time is running ahead of checkmk's server time, a cached local
section will crash in the plugin.
This is fixed now and a message will be generated.
Further:
* Introduce a render function for CacheInfo
* Refactor corresponding usage in local check
* Keep format of GUI and Base rendering in sync (at least to that
extent where it is currently possible)
SUP-6793
Change-Id: Ib3adcafd853f093063c9986ef0b81453dd91339a