Check_MK Agent Issue

Hi all,

I have followed steps and guideline provided from The official Checkmk user guide and Episode 1: Installing Checkmk and monitoring your first host - YouTube on how to install checkmk raw version.

Before adding the host, I had download and install the agent properly. I do run cmd to verify agent install or not and yes it is installed.

image

But, when try to adding the host, the error occurred that connection is failed.

Can someone guide me to solve this issue? Many thanks again.

Ikmal

This my previous setting before I added the host

maybe you have some sort of firewall issue.
the server cannot reach your client, so you need to check the network.
maybe iptables oder ufw?

Did you check firewall settings on host?
By default on my Windows clients tcp in on port 6556 is blocked, so I had to open it for Checkmk agent checks.

How to check that? Can you teach me.

Check the following documentation for firewall settings on Windows:

Since Linux paths are given here, I also assume a Linux system.
In this case, the following two links should help you (if it is the firewall):
iptables: iptables › Wiki › ubuntuusers.de
Linux Agent: Monitoring Linux - The agent for Linux in detail

I did check on firewall. It works fine. No issues regarding on firewall.

can you simply do a telnet on the port?

Hi,
let’s test on the host: nc localhost 6556. Do you see the agent output?
Then let’s test from the Checkmk server: telnet 10.0.1.52 6556 Do you get the agent output?

Karl

Hi kdeutsch,

I was able to receive agent output after run nc localhost. But, for telnet I was able to receive agent output. It end up like this :

“Trying 10.0.1.52…
telnet: Unable to connect to remote host: Connection timed out”

In this case you do have a firewall issue.
Please provide the output of the following commands:

  • netstat -ano | grep 6556 (agent)
  • iptables -vnL (agent)
  • ufw status (agent)
  • ip a (server and agent)
  • ip r (server and agent)
1 Like

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.