piktd.conf
Here is a sample piktd.conf configuration file. It is much like a crontab file with some additional options--for example, a sixth timing parameter (for "drift"). Some alerts (for example, EMERGENCY) are listed more than once because we specify multiple timings in alerts.cfg.
45 5,11,17,23 * * * 0 /usr/bin/nice -5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: WebAdmin' brahms\" +A WebAdmin 55 0-23/4 * * * 5 /usr/bin/nice -10 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Debug' brahms\" +A Debug 45 3 * * * 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Admin' brahms\" +A Admin 10% 0-5 * * * 0 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Security' brahms\" +L "/usr/bin/lpr -P lp" +A Security 30 0 * * 2 10 /usr/bin/nice -5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Info' brahms\" +A Info 20 3 * * 2,5 10 /usr/bin/nice -5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Notice' brahms\" +A Notice 10 2 * * * 10 /usr/bin/nice -5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Warning' brahms\" +A Warning 50 5,8,11,14,17,20,23 * * * 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Critical' brahms\" +A Critical 40 6-21 * * 1-5 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Urgent' brahms\" +L "/usr/bin/lpr -P lp" +A Urgent 40 6-21 * * 0,6 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Urgent' brahms\" +L "/usr/bin/lpr -P lp" +A Urgent 40 0,2,4,22 * * * 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Urgent' brahms\" +L "/usr/bin/lpr -P lp" +A Urgent 0,30 6-21 * * 1-5 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: EMERGENCY' brahms\" +L "/usr/bin/lpr -P lp" +A EMERGENCY 0,30 6-21 * * 0,6 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: EMERGENCY' brahms\" +L "/usr/bin/lpr -P lp" +A EMERGENCY 0 0-5,22-23 * * * 5 /pikt/bin/pikt +M "/usr/bin/mail -s 'PIKT Alert on ottawa: EMERGENCY' brahms\" +L "/usr/bin/lpr -P lp" +A EMERGENCY
(A note about page layout: In the interest of readability, we have added artificial line wraps in many examples. Even though displayed here broken up across several screen lines, in general quoted strings, preprocessor directives, macro definitions, .log & .conf entries, and so on should all be unbroken on a single line.)
For more examples, see Samples.