Skip to main content

Agent installation on linux

Download the Agent

Setup --> Agents --> "Windows, Linux, Solaris, AIX" --> Related --> "Linux, Solaris, AIX" --> right click on .deb file --> Copy link address

Then you will have the address of the .deb file, which can be downloaded with wget:

wget http://portainer.simmy.ch:8095/cmk/check_mk/agents/check-mk-agent_2.0.0p39-1_all.deb

Install the Agent

apt install ./check-mk-agent_2.0.0p39-1_all.deb

if ufw is active, then you have to enable the service port:

ufw allow 6556

Register agent to the monitoring server

cmk-agent-ctl register --hostname <new hostname> --server syslog.simmy.ch --site monitoring --user cmkadmin

Useful commands

ss -tulpn | grep 6556
echo | nc <localhost> 6556
cmk-agent-ctl status