Monitor the host by several Checkmk servers?

Hello,
We are using the latest Checkmk Enterprise version. We are using the following command to create a certificate file.

My question is that we have also other Checkmk Server. But in the command above I see that we specify one Checkmksite (–server cmkserver --site mysite). Is it possible to add the second Checkmk server name and sitename to the command?

If yes, if the following command is correct?

e.g: --server cmkserver-a --site mysite-a --server cmkserver-b --site mysite-b.

So, we can monitor the host from 2 Checkmk servers.

Short answer - yes, its possible to register an Agent to multiple sites.

1 Like

Thank you for your reply.

Then, is the following command correct?

root@linux# cmk-agent-ctl proxy-register \
    --hostname mynewhost3 \
    --server cmkserver-a --site mysite-a \
    --server cmkserver-b --site mysite-b \
    --user agent_registration > /tmp/mynewhost3.json

Hi Andre, if I try to register an Agent to another site I receive to following message:
ERROR [cmk_agent_ctl] Error registering existing host at https://mycheckmkserver/mysite
Caused by:
Request failed with code 405 Method Not Allowed: Wrong site - Details: This host is monitored on the site , but you tried to register it at the site mysite.

Thanks.

No - you need to register separately to every site.

This means the host is not monitored on the site you try to register.
The registration is only possible if the host is monitored on the site.

You cannot “preregister” if the host is not existing on a site.

2 Likes

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.