CMK version: 2.3.0p23
OS version: Ubuntu 22.04.5 LTS
Error message: Plug-in exception in MKDockerClient.__init__: Error while fetching server API version: Not supported URL scheme http+docker
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
Docker containers PEND Container statistics missing
Docker node info Plug-in exception in MKDockerClient.__init__: Error while fetching server API version: Not supported URL scheme http+docker
Independently from CMK version (and if using an old plugin script or the latest one) the Docker plugin is dead since today for all VMware Photon OS servers. The latest Docker version is 27.3.1 on Photon OS but 27.4.1 on Debian based systems (so no unsupported feature). Also there has no update to Docker been today on either system types. But there has a Python update happened today on Photon OS. The issue occurs with PIP “docker” package 7.0.0 (installed since months).
When using the latest version of the PIP “docker” package (7.1.0) then everything is entirely broken:
Traceback (most recent call last):
File "/usr/lib/check_mk_agent/plugins/./mk_docker.py", line 57, in <module>
import docker # type: ignore[import]
^^^^^^^^^^^^^
File "/usr/lib/check_mk_agent/plugins/docker.py", line 265, in <module>
class MKDockerClient(docker.DockerClient):
^^^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'docker' has no attribute 'DockerClient' (most likely due to a circular import)
Is there any known solution to this? Looks like the plugin needs to be rewritten entirely.