|
The macros in the sample pikt_mail_macros.cfg configuration file below are used for routing PIKT alert mail to the appropriate system administrators. Note how, by means of #ifdef directives, we can switch the mail routing instantly when testing. Note, too, how by means of #if directives, we can include or exclude mail sendees for certain systems. Of course, your mail macro setup can be much simpler than this.
///////////////////////////////////////////////////////////////////////////////
//
// pikt mail macros
//
///////////////////////////////////////////////////////////////////////////////
// try to use actual addresses, not NIS aliases or references to GNU Mailman
// lists, just in case of NIS or GNU Mailman breakdown
// systems
brahms brahms\@hamburg // johannes.brahms\@egbdf
johann bach\@moscow // johann.s.bach\egbdf
antonio soler\@moscow // antonio.soler\@egbdf
henry purcell3\@moscow // henry.purcell\@egbdf
systems =brahms =johann =antonio =henry
piktadmin =brahms // pikt head honcho
// dbas
ruggero leoncavallo\@moscow // ruggero.leoncavallo\@egbdf
bedrich smetana\@moscow // bedrich.smetana\@egbdf
alexander borodin\@moscow // alexander.borodin\@egbdf
// dba emeritus
franz schubert\@moscow // franz.schubert\@egbdf
dbas =ruggero =bedrich =alexander
dbadmin =ruggero // dba head honcho
// the various pikt- macros, the addresses that the alerts.cfg mailcmd sends to
pikt-admin =piktadmin
pikt-debug =piktadmin
pikt-test =piktadmin
#ifndef test
# if ! ( newsys | testsys )
pikt-emergency =systems
# if db
=dbas
# endif
pikt-urgent =systems
# if db
=dbadmin
=alexander
# endif
pikt-critical =systems
# if athens2 | athens4
=dbadmin
# endif
pikt-warning =systems
# if athens2 | athens4
=dbadmin
# endif
pikt-notice =brahms =johann =antonio
pikt-info =brahms =johann =antonio
pikt-security =systems
pikt-db =dbas
pikt-backup =bedrich
# else // ! ( newsys | testsys )
pikt-emergency =piktadmin
pikt-urgent =piktadmin
pikt-critical =piktadmin
pikt-warning =piktadmin
pikt-notice =piktadmin
pikt-info =piktadmin
pikt-security =piktadmin
pikt-db =piktadmin
pikt-backup =piktadmin
# endif // ! ( newsys | testsys )
#elsedef // test
pikt-emergency =piktadmin
pikt-urgent =piktadmin
pikt-critical =piktadmin
pikt-warning =piktadmin
pikt-notice =piktadmin
pikt-info =piktadmin
pikt-security =piktadmin
pikt-db =piktadmin
pikt-backup =piktadmin
#endifdef // test
///////////////////////////////////////////////////////////////////////////////
[For more examples, see Samples.]
Home |
FAQ |
News |
Intro |
Samples |
Tutorial |
Reference |
Software |
Authors |
Licensing |
SiteSearch
Links |
SiteIndex |
Pikt-Users |
Pikt-Workers |
Contribute |
ContactUs |
Top of Page
Page best viewed at 1024x768.
Page last updated 2005-06-22.
This site is
PIKT®
powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund. All rights reserved.
|
|
|