Below is shown a copy of the kix-regular script. It is distributed as a template in the cron-bin with the KixFw download. The script is used to send notification e-mails to KIX stakeholders when stakeholder events are detected.
The script needs adaptation for each KIX instance. The place, where adaptation is required, is marked by a hypertext link, which if followed explains the configured item.
#!/usr/bin/perl use strict; use lib '/home/metaagility/lib'; use PythonTech::Cfw; use cfw_kix; cfw('kix/cronjob')->init($0,@ARGV);Since the kix-regular script is specific to each KIX instance it is recommended that it is installed in the KIX data directory.
The kix-regular script should be executed from three distributed one-line scripts (see the etc directory in the KixFw download). The template scripts all use aboslute execution paths and thus need adaptation to the local KIX server:
- cron-5minutely
- cron-hourly
- cron-nightly
These three scripts are meant to be executed as cron jobs.
An equivalent sample crontab (normally to be installed in the etc directory) could look like:
#======================================================================= # This is the master cron tab # To install it, do # crontab etc/crontab #======================================================================= PATH=/usr/bin:/bin MAILTO=webmaster@metaagility.com # 2 * * * * /home/metaagility/etc/cron-5minutely 7 * * * * /home/metaagility/etc/cron-5minutely 12 * * * * /home/metaagility/etc/cron-5minutely 17 * * * * /home/metaagility/etc/cron-5minutely 22 * * * * /home/metaagility/etc/cron-5minutely 27 * * * * /home/metaagility/etc/cron-5minutely 32 * * * * /home/metaagility/etc/cron-5minutely 37 * * * * /home/metaagility/etc/cron-5minutely 42 * * * * /home/metaagility/etc/cron-5minutely 47 * * * * /home/metaagility/etc/cron-5minutely 52 * * * * /home/metaagility/etc/cron-5minutely 57 * * * * /home/metaagility/etc/cron-5minutely 3 * * * * /home/metaagility/etc/cron-hourly 4 3 * * * /home/metaagility/etc/cron-nightlyBack to the main installation instruction page.

