Bind failed (Address already in use (errno = 98)). service = check_mk

Hello guys. How you doing…
Could you please help me with this Error Message.

I added the Host as New Host.
Configured the IP Address
In the Diagnostics / Test in the checkmk webpage… I got this error too.
Communication failed: [Errno 113] No route to host

Installed the xinetd xinetd-2.3.14-40.el6.x86_64.rpm

Linux Version:
3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


[root@localhost ~]# service xinetd restart
Restarting xinetd (via systemctl): [ OK ]
[root@localhost ~]# service xinetd status
xinetd.service - LSB: start and stop xinetd
Loaded: loaded (/etc/rc.d/init.d/xinetd; bad; vendor preset: enabled)
Active: active (running) since Thu 2021-08-19 16:00:54 -04; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 5486 ExecStop=/etc/rc.d/init.d/xinetd stop (code=exited, status=0/SUCCESS)
Process: 5354 ExecReload=/etc/rc.d/init.d/xinetd reload (code=exited, status=0/SUCCESS)
Process: 5498 ExecStart=/etc/rc.d/init.d/xinetd start (code=exited, status=0/SUCCESS)
Main PID: 5505 (xinetd)
CGroup: /system.slice/xinetd.service
└─5505 xinetd -stayalive -pidfile /var/run/xinetd.pid

Aug 19 16:00:54 localhost xinetd[5505]: removing discard
Aug 19 16:00:54 localhost xinetd[5505]: removing echo
Aug 19 16:00:54 localhost xinetd[5505]: removing echo
Aug 19 16:00:54 localhost xinetd[5505]: removing tcpmux
Aug 19 16:00:54 localhost xinetd[5505]: removing time
Aug 19 16:00:54 localhost xinetd[5505]: removing time
Aug 19 16:00:54 localhost xinetd[5505]: bind failed (Address already in use (errno = 98)). service = check_mk
Aug 19 16:00:54 localhost xinetd[5505]: Service check_mk failed to start and is deactivated.
Aug 19 16:00:54 localhost xinetd[5505]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Aug 19 16:00:54 localhost xinetd[5505]: Started working: 0 available services

systemctl status check_mk.socket
check_mk.socket - Check_MK Agent Socket
Loaded: loaded (/etc/systemd/system/check_mk.socket; enabled; vendor preset: disabled)
Active: active (listening) since Thu 2021-08-19 12:43:14 -04; 3h 38min ago
Listen: [::]:6556 (Stream)
Accepted: 0; Connected: 0

Aug 19 12:43:14 localhost systemd[1]: Listening on Check_MK Agent Socket.

systemctl status check_mk.service
Unit check_mk.service could not be found.

Thank you very much.
Best Regards.

Hi @brauliom

Nice profile picture…:slight_smile: You must choose which way you want to run your check_mk_agent:
Either via xinetd (preferred method) or via the systemd socket, not both at the same time. On your system, it seems that the socket is already listening, so xinetd cannot start by trying to bind to the same port: The error message you received, is expected.

If the socket is “up”, but you still can’t contact the agent, try inspecting whether this system is running
ufw, where you might have to allow access towards port tcp/6556. I believe you can check this with “ufw status” and allow an additional port with e.g. “ufw allow 6556/tcp”.

HTH,
Thomas

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.