check communication failed checkmk - proxmox.

guilloking

New Member
Oct 19, 2022
18
1
3
Good morning everyone.

This query is for you to help me, install checkmk under docker, but at the moment, but I install the checkmk agent on another promox server to monitor it but it does not recognize the agent, it already has the user for the special agent, it communicates but still without recognize it and identify services.

In proxmox I already opened ports 6556.

When testing the connection I get the following message.

Communication failed: timed outAgent exited with code 1: Caught unhandled ConnectionError(HTTPSConnectionPool(host='xxxx', port=8006): Max retries exceeded with url: /api2/json/access/ticket (Caused by NewConnectionError('<urllib3. connection.HTTPSConnection object at 0x7f9fdd1d8970>: Failed to establish a new connection: [Errno -2] Name or service not known'))) in /omd/sites/cmk/lib/python3/cmk/special_agents/utils/agent_common.py :135

message dashboard proxmox

[agent] Communication failed: timed outCRIT, [special_proxmox_ve] Agent exited with code 1: Caught unhandled ConnectionError(HTTPSConnectionPool(host='xxxx', port=8006): Max retries exceeded with url: /api2/json/access/ticket (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4947cc6970>: Failed to establish a new connection: [Errno -2] Name or service not known'))) in /omd/sites/cmk/lib/python3/cmk/special_agents/utils/agent_common.py:135CRIT, execution time 5.4 sec

Why is there no communication with the agent?

I also disabled the fw to see if that was the problem, but it persists.
 
Last edited:
First of all I had to ignore the ssl certificate (self signed), and then the error message "Name or service not known" means your hostname could not resolve to an IP address.
In addition, I had to enter the servers in the /etc/hosts file so that the resolution of the host names worked correctly.

After that, the error message disappeared.

omd sudo t OMD[t]:~$ cmk --check ProxmoxCL01 [agent] Success, [special_proxmox_ve] Success, execution time 2.6 sec | execution_time=2.570 user_time=0.070 system_time=0.010 children_user_time=0.800 children_system_time=0.100 cmk_time_agent=1.270 cmk_time_ds=0.310
 
First of all I had to ignore the ssl certificate (self signed), and then the error message "Name or service not known" means your hostname could not resolve to an IP address.
In addition, I had to enter the servers in the /etc/hosts file so that the resolution of the host names worked correctly.

After that, the error message disappeared.

omd sudo t OMD[t]:~$ cmk --check ProxmoxCL01 [agent] Success, [special_proxmox_ve] Success, execution time 2.6 sec | execution_time=2.570 user_time=0.070 system_time=0.010 children_user_time=0.800 children_system_time=0.100 cmk_time_agent=1.270 cmk_time_ds=0.310
Thx for the reply.

The solution: connect for ssh xd.

Thx.