Branch: refs/heads/2.0.0
Home: https://github.com/tribe29/checkmk
Commit: a4e30588da0238102d52cad5fd5317221b0442d8
https://github.com/tribe29/checkmk/commit/a4e30588da0238102d52cad5fd5317221…
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/2.0.0
Home: https://github.com/tribe29/checkmk
Commit: 05540f6049c8f7e9b167c500d5c49940d96af6e0
https://github.com/tribe29/checkmk/commit/05540f6049c8f7e9b167c500d5c49940d…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2021-05-21 (Fri, 21 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
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 936032c70c455b37648900245687586a4700c86d
https://github.com/tribe29/checkmk/commit/936032c70c455b37648900245687586a4…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2021-05-23 (Sun, 23 May 2021)
Changed paths:
M agents/wnx/src/engine/eventlog/eventlogbase.cpp
M agents/wnx/src/engine/eventlog/eventlogbase.h
M agents/wnx/watest/test-eventlog.cpp
Log Message:
-----------
Windows agent: fix unit test of eventlog
- remove duplicated tests
- organize tests better
- decrease time of execution
- introduce unique_ptr instead of ON_OUT_OF_SCOPE.
Change-Id: I50b41b69297fd060dabbd90158bd10616d5b54a3
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 945ed2d4055269cdc7938d93631fee64cb1c9161
https://github.com/tribe29/checkmk/commit/945ed2d4055269cdc7938d93631fee64c…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2021-05-21 (Fri, 21 May 2021)
Changed paths:
A .werks/12779
M inventory/solaris_pkginfo
A tests/unit/cmk/base/plugins/agent_based/test_inv_solaris_pkginfo.py
Log Message:
-----------
12779 FIX inventory: solaris_pkginfo
The solaris_pkginfo inventory plugin was not working and showed the
following message:
WARNING: solaris_pkginfo: failed: '<' not supported between instances of
'str' and 'NoneType'
This should now be fixed. There were multiple issues:
* A python2 to python3 problem: strings can no longer be compared to
None, fixed by providing an empty string as default
* The inventory function returned a superfluous empty dictionary
SUP-6018
Change-Id: I50106ebe301eb78f620ae098ff54e771380b55b8
Commit: 1cfa6c8c480c813f850b7267acb02fd5950ca1da
https://github.com/tribe29/checkmk/commit/1cfa6c8c480c813f850b7267acb02fd59…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-05-21 (Fri, 21 May 2021)
Changed paths:
M cmk/base/agent_based/discovery/__init__.py
Log Message:
-----------
discovery: consolidate REMOVE mode
If the host labels are neither loaded, nor saved, nor reported on,
we probably should not call 'analyse_host_labels' at all, given
that it may reset the ruleset matcher.
Change-Id: I7d8350ed201e04ee6742bf6042aef274255fe01a
Commit: ccb71fba447bfe37dc558644c0c29fdba2be977e
https://github.com/tribe29/checkmk/commit/ccb71fba447bfe37dc558644c0c29fdba…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-05-21 (Fri, 21 May 2021)
Changed paths:
M cmk/base/agent_based/discovery/__init__.py
Log Message:
-----------
discovery: early return from discover_on_host
As a result, if the discovery mode is `ONLY_HOST_LABELS`,
the services are left unchanged (as one would expect).
Note that previously only the *discovered* services had
been kept unchanged, but the manual, custom and active
services had been recomputed in `_get_host_services`.
Change-Id: I04d261e988b666b62eb9ab5e6c097bfad16bd81e
Commit: 7f0a572a42b90738697a4420a3a1bcf558c99cc3
https://github.com/tribe29/checkmk/commit/7f0a572a42b90738697a4420a3a1bcf55…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-05-21 (Fri, 21 May 2021)
Changed paths:
M cmk/base/agent_based/discovery/__init__.py
M cmk/base/agent_based/discovery/_discovered_services.py
M tests/unit/cmk/base/agent_based/discovery/test_discovery.py
Log Message:
-----------
discovery: drop finally killed code
Change-Id: I8bf38cadf4b8670e417db40099d218b6eb1edf0b
Compare: https://github.com/tribe29/checkmk/compare/16c463306f0e...7f0a572a42b9