How to install check_mk agent on SLES 15

I tried to install the check-mk-agent 1.4 on SLES 15. but which required xinetd service. how to install ?

take a look here:

https://software.opensuse.org/download.html?project=network%3Autilities&package=xinetd

the Agents are avabile as rpm, tgz

while installing the xinetd service, received below error
Problem retrieving the repository index file for service ‘xinetd’:
Download (curl) error for ‘https://software.opensuse.org/ymp/network:utilities/SLE_15/xinetd.ymp/repo/repoindex.xml?cookies=0’:
Error code: HTTP response: 400
Error message: The requested URL returned error: 400 Bad Request

As xinetd is depricated since SLES 15 you should think about using systemd (but there it’s not possible to permit only specific source adresses) or using an extra user and get the agent data via ssh.
Just create a user and add check_mk_agent to sudoers. Also add the check_mk_agent command to the authorized_keys file.
BTW: the xinetd package is in the sles15 packagehub channel. You don’t have to use a community repo from opensuse in this case. :slight_smile:

It is possible if your systemd is recent enough to support IP access control:

# /etc/systemd/system/check_mk.socket
# systemd socket definition file
[Unit]
Description=Check_MK Agent Socket

[Socket]
ListenStream=6556
Accept=true

[Install]
WantedBy=sockets.target

# /etc/systemd/system/check_mk.socket.d/10-ipacl.conf
[Socket]
IPAddressDeny=any
IPAddressAllow=10.0.5.5
1 Like