Skip to end of metadata
Go to start of metadata

Problem

After copying or moving a site with omd mv or omd cp, Checkmk will show you duplicate hosts and services.

This is a known issue which needs a bigger rewrite of our code an it will take a while.

Solution

To avoid the issue, you might want to modify the following .mk files

  • ~/etc/check_mk/multisite.d/sites.mk
  • ~/etc/check_mk/liveproxyd.mk
  • ~/etc/check_mk/conf.d/distributed_wato.mk
  • ~/etc/nagvis/conf.d/cmk_backends.ini.php
  • ~/etc/nagvis/maps/<mapname>.cfg
  • ~/etc/nagvis/*
  • ~/local

In case you're using the dcd you need to modify the dcd connection and recreate the hosts.

In big environments, you could modify the following files:

~/etc/check_mk/dcd.d/wato/connections.mk

~/etc/checkmk/conf.d/wato/hosts.mk

~/etc/checkmk/conf.d/wato/*/hosts.mk

Please be careful with modifying these files. We dont't support any modification. We would recommend modifying the hosts via WATO/SETUP or remove and recreate the hosts via the DCD.


Issue with Agent Bakery

ValueError ('/omd/sites/cme2/share/check_mk/agents/check_mk_agent.aix' does not start with '/omd/sites/bak/share/check_mk/agents')


Solution 

Every time the bakery is running, we create a status file. After copying or moving the site you need to delete this file. 

cat ~/var/check_mk/wato/bakery_file_status.mk


{'/omd/sites/cme2/share/check_mk/agents/check_mk_agent.aix': 1615930830.0, '/omd/sites/cme2/share/check_mk/agents/check_mk_agent.linux': 1615930830.0, '/omd/sites/cme2/share/check_mk/agents/check_mk_agent.solaris': 1615930830.0, '/omd/sites/cme2/share/check_mk/agents/check_mk_caching_agent.linux': 1615930824.0, '/omd/sites/cme2/share/check_mk/agents/mk-job': 1615930824.0, '/omd/sites/cme2/share/check_mk/agents/mk-job.aix': 1615930824.0, '/omd/sites/cme2/share/check_mk/agents/mk-job.solaris': 1615930824.0, '/omd/sites/cme2/share/check_mk/agents/waitmax': 1615930824.0}




There is no content with the specified labels