Export hosts between sites

Hi!

I need to export some hosts (with their services) from a site 1 to site 2. I don’t know if it’s possible.

I have this version OMD - Open Monitoring Distribution Version 2.0.0p8.cre Thanks!

Regards!

if it’s a small number of hosts, you can just change: “Monitored on site” in the host config

Hi,
what is your intension to move hosts? Best way is to get the host from the first site with Rest API and put it to new site als with the API. After that you can trigger the service discover via API. If you don’t want a service discaver, you can copy the Autochecks from one site to the other site.
Regards,
Christian

How can I change the site via API?
If I do a GET of all my hosts I get inside the attributes->site and his value.
But if I only get 1 specific host, I dont get that field…

Hi.

You will get the field when you use the parameter “effective_attributes”.

Rg, Christian

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.