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\@ottawa.pikt.org" +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\@ottawa.pikt.org" +A Debug
45 3 * * * 5 /pikt/bin/pikt
   +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Admin'
   brahms\@ottawa.pikt.org" +A Admin
10% 0-5 * * * 0 /pikt/bin/pikt
   +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Security'
   brahms\@ottawa.pikt.org"
   +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\@ottawa.pikt.org" +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\@ottawa.pikt.org" +A Notice
10 2 * * * 10 /usr/bin/nice -5 /pikt/bin/pikt
   +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Warning'
   brahms\@ottawa.pikt.org" +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\@ottawa.pikt.org" +A Critical
40 6-21 * * 1-5 5 /pikt/bin/pikt
   +M "/usr/bin/mail -s 'PIKT Alert on ottawa: Urgent'
   brahms\@ottawa.pikt.org"
   +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\@ottawa.pikt.org"
   +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\@ottawa.pikt.org"
   +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\@ottawa.pikt.org"
   +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\@ottawa.pikt.org"
   +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\@ottawa.pikt.org"
   +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.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
date & time
macros