the script to import the cmcdump config and state file from a remote directory
~/local/bin/cmcdump_import.py*
You can run the script with -h to get a help
You can run the script via cronjob inside the site
etc/cron.d/cmcdump_import
OMD[at]:~$ cat ~/etc/cron.d/cmcdump_import
#############
#/2 * * * * mk-job cmc-import-state cmcdump_import.py -S >/dev/null
#/2 * * * * mk-job cmc-import-config cmcdump_import.py -C >/dev/null
For monitoring the cronjob, I'm using mk-job. Please see this manual for configuring mk-job: https://docs.checkmk.com/latest/en/monitoring_jobs.html
after modifying this file, please run omd reload crontab
Inside the script, you need to modify the following lines:
The path of the config and state file. In my case both files are in the directory