Copy Host in Check_MK


#1

hi all,

its possible to copy host from one site to another on the same machine ?

Or I have to copy the whole site and remove what I dont want :thinking:

Thanks in advance

Regards
Neeloj


(Philipp Näther) #2

Which information do you need on the other site? The only important thing I can imagine is the rrd data. The other WATO config should be easy to recreate manually and would take the same amount of time as going any other way to “copy” the host.


#3

thanks for your answer @TheLucKy

Yes thats exactly what I want.


(Philipp Näther) #4

So then just copy the rrd data to the new site and adjust the rights accordingly. Make sure the new host has the same services.


#5

so you mean:

copy the MYHOST from
/opt/omd/SITE1/var/pnp4nagios/perfdata/myhost
to
/opt/omd/SITE2/var/pnp4nagios/perfdata/

and then set the rights of the myhost to the site2-user?

Same services if they are different it will not work ?


(Philipp Näther) #6

Yes that should work.

It will work but if there are any new or renamed services, there will be new rrd data also. Just keep that in mind.


#7

thank you so much :slight_smile: