Packages
  • DB2 Plugins

    by Anastasios

    30 Jun 202052685600
  • cmcdump import

    by athomaidis

    This mkp includes: 1. 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 2. 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 35 remotepath="/tmp/path" # The regex for the config and state file 49 cmcdumpdir = re.search("conf.*", config) 57 cmcdumpdirump = re.search("conf.*", dump) 72 match = re.search("state.*", statefile)

    21 Dec 202152294387