Monitoring data should reach Checkmk through a trusted connection. On Linux, registering an agent host pairs its installed Agent Controller with the site's Agent Receiver so the site can retrieve agent data over TLS.

The Linux agent must already be installed, and its host object must be saved in Setup before registration. Pull mode is available in every Checkmk edition and lets the monitoring site request data from the agent.

An installed agent can have only one trust relationship with a particular site. Registering it to that site under another host name replaces the existing relationship and stops data collection for the old name, so an existing registration needs attention before a new one is accepted.

Steps to register a Checkmk agent host:

  1. Inspect the current connections on the Linux host being registered.
    $ sudo cmk-agent-ctl status
    Version: 2.5.0p18
    Agent socket: operational
    IP allowlist: any
    Legacy mode: enabled
    No connections

    If the expected site and host name are already registered, registration is unnecessary. If that site is connected under another host name, stop here until the site administrator has resolved the old registration; replacing it interrupts monitoring for that name.

  2. Request registration with the Checkmk site's receiver.
    $ sudo cmk-agent-ctl register \
      --hostname web01.example.net \
      --server monitoring.example.net:8000 \
      --site monitoring \
      --user agent_registration
    Attempting to register at monitoring.example.net, port 8000. Server certificate details:
    
    PEM-encoded certificate:
    -----BEGIN CERTIFICATE-----
    MIIFojCCA4qgAwIBAgIUOzNIwbj4JeZ+JExLIV+zcT5kqD8wDQYJKoZIhvcNAQEN
    ##### snipped #####
    mljsm1m7
    -----END CERTIFICATE-----
    
    Issued by:
    	Site 'monitoring' local CA
    Issued to:
    	monitoring
    Validity:
    	From Tue, 10 Nov 2026 06:36:32 +0000
    	To   Mon, 10 Nov 2036 06:36:32 +0000

    web01.example.net must exactly match the saved host name in Setup. monitoring.example.net is the Checkmk server, 8000 is this site's Agent Receiver port, and monitoring is the site name from its web address. Other sites may use a different receiver port. The site administrator supplies the receiver details, a trusted copy of its certificate, and the agent_registration user's password. This built-in account uses the Agent registration role; an administrator account is unnecessary.

  3. Accept the connection with Y only if the displayed certificate matches the trusted copy supplied by your site administrator.
    Do you want to establish this connection? [Y/n]
    > Y

    A matching site name alone does not authenticate a certificate. If the certificate is unexpected, n cancels the request. The --trust-cert option would skip this confirmation.

  4. Enter the registration account's password at the interactive prompt.
    Password for Checkmk user 'agent_registration':
    
    > 
    Registration complete.

    The password is not displayed. Omitting --password keeps it out of the command line and shell history.

  5. Check the saved registration for the expected site and host name.
    $ sudo cmk-agent-ctl status
    Version: 2.5.0p18
    Agent socket: operational
    IP allowlist: any
    
    
    Connection: monitoring.example.net/monitoring
    	UUID: 8dcc9739-11b8-43a4-b2e5-e500794e7c02
    	Local:
    		Connection mode: pull-agent
    		Connecting to receiver port: 8000
    		Certificate issuer: Site 'monitoring' agent signing CA
    ##### snipped #####
    	Remote:
    		Connection mode: pull-agent
    		Hostname: web01.example.net

    The local and remote Connection mode values should both be pull-agent, and Hostname must match the host in Setup. The UUID identifies this registration.

  6. Switch to the site account on the Checkmk server.
    $ sudo su - monitoring

    The account name is the site's name. This shell runs as the site account on the monitoring server.

  7. Retrieve the registered host's agent data from the site shell.
    OMD[monitoring]:~$ cmk -d web01.example.net
    <<<check_mk>>>
    Version: 2.5.0p18
    AgentOS: linux
    Hostname: web01.example.net
    ##### snipped #####

    The check_mk section and expected Hostname show that the site can retrieve data from this agent. A connection error or missing agent output means registration alone has not made collection work. Service discovery and activation are separate follow-up jobs.
    Related: How to troubleshoot a Checkmk agent connection on Linux
    Related: How to run Checkmk service discovery
    Related: How to activate Checkmk pending changes

Share this guide