https://docs.checkmk.com/latest/en/agent_linux.html
First we need to add a host in the Checkmk that will contains all the info related to the host system (eg. Hostname, IP Address etc).
The Host can be added from Setup > Hosts > Add host to the monitoring
- Basic settings.
- Hostname
Addhostname that will identify the host.
- Hostname
- Network address.
- IP address family.
SelectIPv4 only.
- IPv4 address.
AddIP address of the host.
- IP address family.
- Monitoring agents.
- Checkmk agent / API integration.
SelectAPI integration if configured, else checkmk agent.
- Checkmk agent / API integration.
The Checkmk Raw Edition provides all agent related configuration in the server. It can be accessed from Setup > Agent > Linux. Download the specific agent configuration for setup the agent. Download the latest agent package provided for the Debian distribution as a .deb file.
apt-get install -f ././check-mk-agent_*.debBy default Agent uses TCP port 6556 for communication. This port must be enabled in the firewall.
ufw allow 6556/tcpcmk-agent-ctl register --hostname HOSTNAME_THAT_ADDED_ABOVE --server checkmk.mydomain.com:8000 --site cmk --user automation --password 'AUTOMATION_USER_PASSWORD'
systemctl restart cmk-agent-ctl-daemon.serviceNow on the Checkmk server, we can check the Run tests and if everything works then we can apply the Changes.
This can be done from Setup > Hosts > HOSTNAME_THAT_ADDED_ABOVE
SelectSave & run service discovery.SelectAccept all or specific service which need to be monitored.
Now apply all the changes. This host has been added for monitoring in the Checkmk server.