CheckMK agent spamming docker host's containers with invalid command

CMK version: 2.0.0p21 (CFE)
OS version: Docker image

journalctl -u docker -n 100 --no-pager
Error message:

May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.668271849+02:00" level=error msg="Error running exec 5e9817482da2eee851d63a0411b5a74616727fb2652395782b30016f06ebdb81 in container: OCI runtime exec failed: exec failed: unable to start container process: exec: \"check_mk_agent\": executable file not found in $PATH: unknown"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.668456646+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.668780937+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671295327+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671461197+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671784483+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671826795+02:00" level=error msg="Error running exec 642912817b44e879bf209df2da7374004d3ede121ed3f7c9a4ef6283c08cce85 in container: OCI runtime exec failed: exec failed: unable to start container process: exec: \"check_mk_agent\": executable file not found in $PATH: unknown"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671794484+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671864052+02:00" level=error msg="Error running exec 96ea772ed35fa959fc426b48a0ef6342cf91b8fff2461f2c2d42d21072799844 in container: OCI runtime exec failed: exec failed: unable to start container process: exec: \"check_mk_agent\": executable file not found in $PATH: unknown"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.671906576+02:00" level=error msg="stream copy error: reading from a closed fifo"
May 09 14:24:27 wall-e dockerd[708]: time="2022-05-09T14:24:27.672089200+02:00" level=error msg="stream copy error: reading from a closed fifo"

Everything seems to be fine from the web UI side, though it looks like the CheckMK agent on my docker hosts is spamming the containers, trying to execute this command even though the containers don’t have CheckMK installed themselves.

Is there a way this can be disabled?
Should the containers have the CheckMK agent script? (I don’t see a reason I have all the info I need from the docker host itself)

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

You need to configure the Docker agent plugin so that it does not try to execute the checkmk agent inside the container. There’s an option for that.

Quick tip, love it.

Thanks Sander!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.