Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 0acc9228d942c176a37721381e9c486abba1ba49
https://github.com/tribe29/checkmk/commit/0acc9228d942c176a37721381e9c486ab…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-05-25 (Tue, 25 May 2021)
Changed paths:
M cmk/core_helpers/_markers.py
M cmk/utils/translations.py
Log Message:
-----------
inline translate_piggyback_host
This reduces the calls to ensure_str by a factor of 3.
Also, we now actually use the encoding_fallback.
Change-Id: Ifd9762fd381c8836070f4fed4c2f04d97a573186
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: b59e1cb340605ed31bbf00a9aa399eea61b3e197
https://github.com/tribe29/checkmk/commit/b59e1cb340605ed31bbf00a9aa399eea6…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-05-25 (Tue, 25 May 2021)
Changed paths:
M cmk/core_helpers/agent.py
Log Message:
-----------
Nest `flatten_piggyback_section()` where it is used
* This is consistent with the other section transformation function,
namely `decode_sections()`. This should make it easier to make a
proper abstraction out of the `parse()` method body later.
Change-Id: Ibf5340b09f872ce9dec0264ad959f010f1478f9e
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: cd16d61a5ef8250359d3d357bb3fc44569d417df
https://github.com/tribe29/checkmk/commit/cd16d61a5ef8250359d3d357bb3fc4456…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-05-25 (Tue, 25 May 2021)
Changed paths:
M cmk/core_helpers/_base.py
M cmk/core_helpers/agent.py
M cmk/core_helpers/cache.py
M tests/unit/cmk/core_helpers/test_fetchers.py
Log Message:
-----------
Allow FileCache usage for CHECKING
Regular, non-cluster cache reading is disabled by `max_age == 0` anyway,
we do not need to handle this otherwise. Now, cluster data may actually
come from cache provided it is not older than 90 s.
The condition in `cache_read(Mode)` is now identical for SNMP and Agent
fetchers and we may therefore simplify the code in another commit.
This commit adds further logging output in order to make it possible
to understand which path is taken, and why.
CMK-7752
Change-Id: I46717ac29474aafa6111bff505078901d04d7e65
Commit: 8f27d8f23a27f1bf5c8f46527f6e26e9802a652b
https://github.com/tribe29/checkmk/commit/8f27d8f23a27f1bf5c8f46527f6e26e98…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-05-25 (Tue, 25 May 2021)
Changed paths:
M cmk/core_helpers/agent.py
M cmk/core_helpers/cache.py
M cmk/core_helpers/snmp.py
M tests/unit/cmk/base/sources/test_cmd_caching.py
M tests/unit/cmk/core_helpers/test_fetchers.py
Log Message:
-----------
Remove unnecessary cache_read/cache_write functions
The previous changes to the caching mechanism make these functions
unnecessary. This patch removes them.
Change-Id: I99e5701c9711765e6fa127b8d25bd87847e0e471
Compare: https://github.com/tribe29/checkmk/compare/418afc127728...8f27d8f23a27
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 418afc127728d9ea33e0e134462fe413d10adc44
https://github.com/tribe29/checkmk/commit/418afc127728d9ea33e0e134462fe413d…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2021-05-25 (Tue, 25 May 2021)
Changed paths:
A .werks/12790
M cmk/base/plugins/agent_based/k8s_endpoint_info.py
Log Message:
-----------
12790 FIX kubernetes: label empty endpoint_info
Before this werk endpoint hosts where only labeled if there was at least
some information about the endpoint available. This is problematic as
the host is created anyway even if there is no information available. In
order to prevent the problem described in werk #12782 the host label
<tt>cmk/kubernetes:yes</tt> has to be available, so we need to label
the host even if there is no information available.
Change-Id: I9be1db6c1bddfc825a462899c971f7929c1d9728
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 02d43c209366c8558e7073a5544e4ce752c537dc
https://github.com/tribe29/checkmk/commit/02d43c209366c8558e7073a5544e4ce75…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2021-05-25 (Tue, 25 May 2021)
Changed paths:
A .werks/12788
M cmk/special_agents/agent_kubernetes.py
Log Message:
-----------
12788 FIX Kubernetes: agent: handle pending pods
Before this werk, the kubernetes special agent could not handle pods that are
pending. The error message was:
TypeError: '<' not supported between instances of 'NoneType' and 'str'
This should now be fixed.
Full Traceback:
Traceback (most recent call last):
File "/omd/sites/cmk200d/share/check_mk/agents/special/agent_kubernetes", line 12, in <module>
sys.exit(main())
File "/omd/sites/cmk200d/lib/python3/cmk/special_agents/agent_kubernetes.py", line 1499, in main
print(api_data.node_sections())
File "/omd/sites/cmk200d/lib/python3/cmk/special_agents/agent_kubernetes.py", line 1371, in node_sections
g.join('k8s_resources', self.pods.resources_per_node())
File "/omd/sites/cmk200d/lib/python3/cmk/special_agents/agent_kubernetes.py", line 976, in resources_per_node
pods_sorted = sorted(self, key=lambda pod: pod.node)
TypeError: '<' not supported between instances of 'NoneType' and 'str'
Pending pods don't have an assigned node:
$ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
my-kubeview-54f9bc7d9f-v4sjh 1/1 Running 0 16h 10.42.1.4 k3s-01-02 <none> <none>
svclb-my-kubeview-x2kqd 0/1 Pending 0 16h <none> <none> <none> <none>
svclb-my-kubeview-vql8c 0/1 Pending 0 16h <none> <none> <none> <none>
Change-Id: Idb14c2a958458d1071ac2be594eea30d99004db6