cmcdump import

cmcdump import


This mkp includes:

  1. the script to import the cmcdump config and state file from a remote directory

You can run the script with -h to get a help

2. You can run the script via cronjob inside the site
OMD[at]:~$ cat ~/etc/cron.d/cmcdump_import
#*/2 * * * * mk-job cmc-import-state -S >/dev/null
#*/2 * * * * mk-job cmc-import-config -C >/dev/null

For monitoring the cronjob, I'm using mk-job. Please see this manual for configuring mk-job:

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
35 remotepath="/tmp/path"

# The regex for the config and state file
49 cmcdumpdir ="conf.*", config)
57 cmcdumpdirump ="conf.*", dump)
72 match ="state.*", statefile)

Latest Version

Version: 2.0.5
Packaged at: 21 Dec 2021
Created on Checkmk version: 2.0.0p16
Minimum Checkmk version required: 2.0.0p12
MKP MD5 hash: eb300f10c237ac47b92ea959e736f843
This version requires Checkmk version 2.0.0 or higher
No reviews added yet.

By downloading packages from the Checkmk Exchange you agree to our Terms of Use.