CMK version:
2.0.0p21 OS version:
Ubuntu Server 20.04.3 LTS
Error message:
After a few day’s / weeks of successful operation with check_mk , i am getting an error while running the check mk agent on my Microsoft exchange Server. It is a Windows Server 2016 with Exchange 2016 installed on it.
The Agent was installed as clean install…means, there was no old agent version or anything like that installed before.
The Agent works as it should for Day’s / Week’s…at some unknown point, it stopps working.
The only thing i can see is the following error in the Log File (Mix of english and german):
2022-04-11 08:02:25.508 [srv 8648] [ERROR:CRITICAL] IO broken with exception bind: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.
A reboot solves this issue for a unknown time
it seems, that it has something to do with the TCP port or anything like that…
The problem is that the MS Exchange uses the port 6556 from time to time for own services.
Until now i found no clear documentation what services this is.
sadly, my system didn’t show me anything, if i run the netstat -anop command… @ChristianM i also tried your solution to simply restart the search service and afterwards the checkmk service…
still no success
We had the same Problem.
It was the MS Exchange Search Service
With
netsh int ipv4 show dynamicport tcp
you get the dynamicports
So we changed the port the CheckMK Agent is listening to 6000, create a rule in WATO, deployed a new agent and no Problems since that.
Hi,
you should really check the intervall of your dynamic Ports.
netsh int ipv4 show dynamicport tcp
Port 9000 is at our site in the dynamic range. And it could be occupied from the MS Exchange Service.
i would take a port which is under the lowest dynamicport
Peter
I think changing the port is not a good idea. As @ruppo wrote the proplem can reoccur with other applications. The problem is on microsoft side. They occupie with differen service dynamically the port 6556 at restart (see: MS Exchange blocked port 6556 - Troubleshooting - Checkmk Community) .
I saw this behaiviour sometimes after installaion of fixpacks or security fixes in MS Exchg environments. A stop of the given Exchg service and a restart of check_mk agenten and a start of der Exchg service fixed the problem most of the time.
Check-MK Agent 2.1.0 is installed as service and running. However, a “telnet localhost 6556” on that host opens the connection (blank screen) but never returns any data.
in check_mk.log we find:
2022-06-17 12:32:41.140 [srv 18776] Applying config auto restart_on_crash:true error_mode: log
2022-06-17 12:32:41.144 [srv 18776] [ERROR:CRITICAL] IO broken with exception bind: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.
2022-06-17 12:32:52.995 [ctl:10728] [cmk_agent_ctl::modes::pull][INFO] [::ffff:192.168.80.16]:56316: Handling pull request.
2022-06-17 12:32:53.016 [ctl:10728] [cmk_agent_ctl::modes::pull][DEBUG] [::ffff:192.168.80.16]:56316: Handling pull request DONE (Task detached).
2022-06-17 12:32:53.037 [ctl:10728] [cmk_agent_ctl::monitoring_data][DEBUG] connect to localhost:50001
2022-06-17 12:32:53.059 [ctl:10728] [cmk_agent_ctl::modes::pull][INFO] [::ffff:192.168.80.16]:56318: Handling pull request.
2022-06-17 12:32:53.080 [ctl:10728] [cmk_agent_ctl::modes::pull][DEBUG] [::ffff:192.168.80.16]:56318: Handling pull request DONE (Task detached).
i changed check-mk agents service ports to some other port numbers, but nothing changed
Still getting this error in check_mk.log:
[ERROR:CRITICAL] IO broken with exception bind: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.
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.