CMK version:
Checkmk Enterprise Edition 2.3.0p17 using Agent Bakery
OS version:
Ubuntu 22.04.5 LTS
Host OS with Problem:
Windows Server 2019 1809
So I’ve ran into a weird problem. One of our hosts suddenly has an " Error establishing TLS connection" in the WebUI, despite no changes being made. When trying nc on port 6556 from the cmk server to the host, it shows that the connection was successful.
What I’ve tried:
- Restarting the Agent Service
- Removing registration via delete-all AND in the WebUI and then reregistering the agent and agent updater
This didn’t help.
A cmk-agent-ctl.exe status doesn’t show any issues on the host either.
Then I tried doing a .\check_mk_agent.exe check -self. Seems like this did show an issue: Exception in IO/ip: bind: An attempt was made to access a socket in a way forbidden by its access permissions.port 6556
Here is the full output:
PS C:\Program Files (x86)\checkmk\service> .\check_mk_agent.exe check -self 10
Adhoc/Exec Mode,press any key to stop execution
Successful start of thread
starting controller
Controller has NOT started: firewall to agent
Firewall mode is set to configure, adding rule...
Removing all 'Checkmk Agent application' app: 'C:\Program Files (x86)\checkmk\service\check_mk_agent.exe'
Removed 1 old rules.
Firewall rule 'Checkmk Agent application' had been added successfully for ports [6556]
Loading module config
Processed [1] module(s)
The command 'C:\ProgramData\checkmk\agent\modules\python-3\postinstall.cmd' is successful
Module 'python-3' is prepared to work with bin 'C:\ProgramData\checkmk\agent\modules\python-3\.venv\Scripts\python.exe'
Pre Start actions
OHM file 'C:\ProgramData\checkmk\agent\bin\OpenHardwareMonitorCLI.exe' is not found
Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
Left [41] files to execute
Sync Plugin Entry 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' forced to be async, due to cache_age [1200]
Sync Plugin Entry 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' forced to be async, due to cache_age [1200]
Plugin 'C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs' is async with age:90000 timeout:3600 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\ad_replication.bat' is sync with age:0 timeout:60 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' is async with age:1200 timeout:60 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\mk_inventory.vbs' is sync with age:0 timeout:60 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\win_license.bat' is sync with age:0 timeout:60 retry:0
Left [5] files to execute in 'plugins'
Data 'C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs' is too old, age is '1080928' seconds
restarting async plugin 'C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs'
restarted thread for plugin 'C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs'
Async Thread for C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs is to be started
Data 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' is too old, age is '1080928' seconds
Exec app 'cscript.exe //Nologo "C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs"', mode [0]
restarting async plugin 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py'
restarted thread for plugin 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py'
Async Thread for C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py is to be started
Allowed Extensions: [checkmk.py,py,exe,bat,vbs,cmd,ps1]
Plugin 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' has updater start mode
Left [41] files to execute
Exec app 'C:\ProgramData\checkmk\agent\modules\python-3\.venv\Scripts\python.exe C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py', mode [1]
Sync Plugin Entry 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' forced to be async, due to cache_age [1200]
Sync Plugin Entry 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' forced to be async, due to cache_age [1200]
Plugin 'C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs' is async with age:90000 timeout:3600 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\ad_replication.bat' is sync with age:0 timeout:60 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' is async with age:1200 timeout:60 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\mk_inventory.vbs' is sync with age:0 timeout:60 retry:0
Plugin 'C:\ProgramData\checkmk\agent\plugins\win_license.bat' is sync with age:0 timeout:60 retry:0
Left [5] files to execute in 'plugins'
Allowed Extensions: [exe,bat,vbs,cmd,ps1]
Left [0] files to execute
Left [0] files to execute in 'local'
Pre Start actions ended
Waiting for async threads [2]
Appended [386] bytes from 'C:\ProgramData\checkmk\agent\modules\python-3\.venv\Scripts\python.exe C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py', timeout is [2500ms]
perf: In [2852] milliseconds process 'cscript.exe //Nologo "C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs"' pid:[2352] SUCCEDED - generated [86] bytes of data in [2] blocks
Thread OFF: 'C:\ProgramData\checkmk\agent\plugins\windows_updates.vbs'
Left async threads [1] after waiting 5500ms
Starting io with 6556 None
cma::world::ExternalPort::ioThreadProc: started
main Wait Loop
Starting IO ipv6:false, used port:6556
Exception in IO/ip: bind: An attempt was made to access a socket in a way forbidden by its access permissions.port 6556
IO broken with exception bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Received 2 bytes
Received 2 bytes
Plugin 'C:\ProgramData\checkmk\agent\modules\python-3\.venv\Scripts\python.exe C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' hits timeout
Process 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' timeout in 63 when set 60
Thread OFF: 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py'
Received 2 bytes
Server is going to stop
Stop Service called
Stop request is set
main Wait Loop END
Shutting down IO...
Stopping execution
Thread is stopped
Killing Agent extensions
All extensions are dead, ok.
Waiting for testing thread
Received 2 bytes
Leaving testing thread
!
Does anyone have an idea what could cause this?