"Fossies" - the Fresh Open Source Software Archive

Member "pikt-1.19.0/lib/configs_samples/alerts.cfg" (14 Oct 2002, 19313 Bytes) of package /linux/misc/old/pikt-1.19.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 ///////////////////////////////////////////////////////////////////////////////
    2 // 
    3 // PIKT alerts.cfg
    4 // 
    5 ///////////////////////////////////////////////////////////////////////////////
    6 // 
    7 // (please see the comments prefacing the sample macros.cfg about config file
    8 // complexity and parse error debugging)
    9 // 
   10 ///////////////////////////////////////////////////////////////////////////////
   11 // 
   12 // when ordering your alarms, put the most important at the head of the
   13 // list so that they will appear at the top of any emailed alerts
   14 // 
   15 ///////////////////////////////////////////////////////////////////////////////
   16 ///////////////////////////////////////////////////////////////////////////////
   17 
   18 EMERGENCY       // things that require immediate attention
   19 
   20 #ifndef test
   21 #  if hamburg | misscritsys // & ! moscow
   22     timing      10,25,40,55 6-18        * * 1-5 5  // mon-fri,  day hrs
   23             10          6-18        * * 0,6 5  // sun,sat,  day hrs
   24             10          0-5,19-23   * * *   5  // each day, nite hrs
   25 #  else
   26     timing      10,40       6-18        * * 1-5 5  // mon-fri,  day hrs
   27             10          6-18/2      * * 0,6 5  // sun,sat,  day hrs
   28             10          0,2,4,20,22 * * *   5  // each day, nite hrs
   29 #  endif
   30 #elsedef
   31     timing      10 8-16/2 * * *
   32 #endifdef  // test
   33 
   34 #if moscow | nismaster
   35     priority    5
   36 #else
   37     priority    0
   38 #endif
   39 
   40     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: EMERGENCY' =pikt-emergency"
   41 
   42     lpcmd       "=lp =piktprinter"
   43 
   44     alarms
   45 
   46 #if piktmaster
   47             SysDownEmergency
   48             SysBakSubnetDownEmergency
   49 #endif
   50 
   51             LoadAvgEmergency
   52 
   53 #if nisserver | mailserver
   54             NISBrokenEmergency
   55 #endif
   56 
   57 #if solaris
   58             CountsProcEmergency
   59             CPUUsageEmergency
   60             SuLogScanEmergency
   61             SwapExhaustedEmergency
   62 #endif
   63 
   64             DevSystemNotExistEmergency
   65             DirSystemNotExistEmergency
   66             SystemFileNotExistEmergency
   67             DiskCapEmergency
   68             DiskInodeEmergency
   69 
   70 #if moscow
   71             RaidStatusNotOptimalEmergency
   72 #endif
   73 
   74 #if cssys
   75             DeadManActivityEmergency
   76 #endif
   77 
   78 ///////////////////////////////////////////////////////////////////////////////
   79 
   80 Urgent          // things that deserve nearly immediate attention
   81 
   82 #ifndef test
   83 #  if misscritsys
   84 #    if athens2 | athens4 | moscow
   85     timing      5,20,35,50 6-18        * * 1-5 5  // mon-fri,  day hrs
   86             20         6-18        * * 0,6 5  // sun,sat,  day hrs
   87             20         0-5,19-23   * * *   5  // each day, nite hrs
   88 #    else
   89     timing      20,50      6-18        * * 1-5 5  // mon-fri,  day hrs
   90             20         6-18/2      * * 0,6 5  // sun,sat,  day hrs
   91             20         0,2,4,20,22 * * *   5  // each day, nite hrs
   92 #    endif
   93 #  else
   94     timing      20         6-18        * * 1-5 5  // mon-fri,  day hrs
   95             20         6-18/4      * * 0,6 5  // sun,sat,  day hrs
   96             20         2,22        * * *   5  // each day, nite hrs
   97 #  endif
   98 #elsedef
   99     timing      20 8-16/2 * * *
  100 #endifdef  // test
  101 
  102 #if moscow | nismaster
  103     priority    10
  104 #else
  105     priority    0
  106 #endif
  107     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Urgent' =pikt-urgent"
  108 
  109     lpcmd       "=lp =piktprinter"
  110 
  111     alarms
  112 
  113 #if piktmaster
  114             SysDownUrgent
  115 #endif
  116 
  117             ProcSystemDeadUrgent
  118             PiktcSvcLogScanUrgent
  119             SysRebootUrgent
  120             LoadAvgUrgent
  121             PasswdFileProblemsUrgent
  122             DirSystemStatChangeUrgent
  123             DiskCapUrgent
  124             UmountDiskUrgent
  125             RootCoreFileExistUrgent
  126             FileagesLogUrgent
  127             FileagesUrgent
  128             MailQueueLengthyUrgent
  129             MessagesScanUrgent
  130             FileExistWarnUrgent
  131             SystemFileSizeChangeUrgent
  132 
  133 #if solaris
  134             RunawayProcUrgent
  135             CPUUsageUrgent
  136             NewSystemStartupFileUrgent
  137             ShadowFileProblemsUrgent
  138             SwapLowUrgent
  139 #endif
  140 
  141 #if solaris | sunos
  142             ProcZombieTotalCountsUrgent
  143 #endif
  144 
  145 #if solaris
  146 #  if milan
  147             CronLogScanUrgent
  148 #  endif
  149 #endif
  150 
  151 #if solaris | sunos
  152             LpHungUrgent
  153 #endif
  154 
  155 #if ! sunos
  156             MountDiskUrgent
  157 #endif
  158 
  159 #if disksuite
  160             MetastatErrorsUrgent
  161 #endif
  162 
  163 #if nisclient
  164             NISNoBindingUrgent
  165 #endif
  166 
  167 #if nismaster
  168             YPPasswdFileSizeChangeUrgent
  169             AcctmgrOrphanedLockFileUrgent
  170 #endif
  171 
  172 #if nismaster | piktmaster
  173             YPPasswdFileProblemsUrgent
  174 #endif
  175 
  176 #if ! uppsala
  177             SyslogScanUrgent
  178 #endif
  179 
  180 #if moscow
  181             RelaySpoolStatUrgent
  182 #endif
  183 
  184 #if athens2 | athens4
  185             IngresErrlogScanUrgent
  186 #endif
  187 
  188 // these are only needed for monitoring any non-pikt systems out there
  189 //#if piktmaster
  190 //          RemoteDiskCapUrgent
  191 //          RemoteDiskInodeUrgent
  192 //          RemoteLpHungUrgent
  193 //#endif
  194 
  195 ///////////////////////////////////////////////////////////////////////////////
  196 
  197 Critical        // things that should be dealt with before too long,
  198             // preferably by day's end; (things reported here
  199             // may not be especially "critical" but are so
  200             // designated to conform with syslog's log levels)
  201 
  202 #ifndef test
  203 #  if misscritsys
  204     timing      30 6-22/2      * * 1-5 5  // mon-fri, day&nite hrs
  205             30 6-22/4      * * 0,6 5  // sun,sat, day&nite hrs
  206 #  else
  207     timing      30 6-18/2      * * 1-5 5  // mon-fri, day&nite hrs
  208                                                   // sun,sat, no hrs (no run)
  209 #  endif
  210 #elsedef
  211     timing      30 8-16/2 * * *
  212 #endifdef  // test
  213 
  214 #if moscow | nismaster
  215     priority    10
  216 #else
  217     priority    0
  218 #endif
  219 
  220     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Critical' =pikt-critical"
  221 
  222     alarms
  223 
  224 #if piktmaster
  225             PiktDaemonProblemsCritical
  226 #endif
  227 
  228             CksumDifferenceCritical
  229             AfterHoursUserActivityLogScanCritical
  230             DiskCapCritical
  231             TmpFullCritical
  232             FileageWarningHstCritical
  233 
  234 #if solaris
  235             ShadowFileProblemsCritical
  236 #endif
  237 
  238 #if disksuite
  239             MetastatErrorsCritical
  240 #endif
  241 
  242 #if moscow
  243             ClassAliasProblemsCritical
  244 #endif
  245 
  246 #if acctmgrmaster
  247             AcctmgrInputOldCritical
  248 #endif
  249 
  250 #if nismaster
  251             YPPasswdAcctPasswordChangeCritical
  252 #endif
  253 
  254 #if ! ( rotterdam | brussels )  // brussels has mysterious hangs in some
  255                 // file accesses; we probably need to
  256                 // reinstall the os
  257             DevSystemStatChangeCritical
  258             SystemFileStatChangeCritical
  259             DirsFileStatCritical
  260 #endif
  261 
  262 // retired per ss' suggestion, 09/25/00
  263 //#if mailserver
  264 //          SpoolchkRunCritical
  265 //#endif
  266 
  267 #if warsaw
  268             PiktWebPageChangeCritical
  269 #endif
  270 
  271 #if moscow
  272             ForwardingBrokenCritical
  273 #endif
  274 
  275 #if madrid
  276             KillIdleUserSessionCritical // supplementing idled
  277 #endif
  278 
  279 #if ! murmansk
  280             AuthLogScanCritical
  281 #endif
  282 
  283 #if solaris
  284             IostatLogInfo
  285 #endif
  286 
  287 ///////////////////////////////////////////////////////////////////////////////
  288 
  289 Warning         // things that need attention, if not today, then
  290             // eventually; after looking at warning alerts, we
  291             // often just delete them at the end of the day,
  292             // clearing the deck for the next day's warnings
  293 
  294 #ifndef test
  295 #  if moscow
  296     timing      40 3 * * * 10   // give extra time for BakMail to
  297                     // finish
  298 #  else
  299     timing      40 2 * * * 10   // run after the completion of
  300                     // Info, which see
  301 #  endif
  302 #elsedef
  303     timing      40 8-16/2 * * *
  304 #endifdef  // test
  305 
  306     nice        5
  307     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Warning' =pikt-warning"
  308 
  309     alarms
  310 
  311 #  if piktmaster
  312             SysDownWarning
  313             SysBakSubnetDownWarning
  314 #  endif
  315 
  316             DumpDatesProblemsWarning
  317             PasswdFileProblemsWarning
  318             DiskCapWarning
  319             DiskInodeWarning
  320             QueuedMailOldWarning
  321             QueuedMailLongWarning
  322             RootMailFileExistWarning
  323             AliasesFileProblemsWarning
  324 //          FileMtimeChangeWarning
  325 
  326 #if solaris
  327             SuLogScanWarning
  328             BackupDevStatWarning
  329             PasswdShadowCrosscheckWarning
  330             FileCtimeChangeWarning
  331             OrphanedPrintFilesWarning
  332 #endif
  333 
  334 #if nisclient & solaris
  335             PasswdFileNISProblemsWarning
  336             ShadowFileNISProblemsWarning
  337             YPServersFileWarning
  338 #endif
  339 
  340 #if nismaster
  341             YPAliasesBadAddressWarning
  342             YPGroupFileProblemsWarning
  343             NISHostsProblemsWarning
  344 #endif
  345 
  346 #if cssys & ! paris7
  347             LengthyUptimeWarning
  348 #endif
  349 
  350 #if ! ( murmansk | firenze )
  351             GroupFileProblemsWarning
  352 #endif
  353 
  354 #if ! firenze
  355             CrontabSuspiciousWarning
  356 #endif
  357 
  358 #if moscow
  359             MailmanAddressesProblemsWarning
  360             MailmanLocalAddressesProblemsWarning
  361 #endif
  362 
  363 #if piktmaster
  364             YPPasswdCrosscheckWarning
  365             // RemoteDiskCapWarning
  366             // RemoteDiskInodeWarning
  367             RemoteLpDisabledWarning
  368 #endif
  369 
  370 #if ! linux
  371             LpDisabledWarning
  372 #endif
  373 
  374 #if moscow
  375             // at 15 2,6,10,14,18,22 * * * on warsaw,
  376             // /usr/local/etc/vax_classlist_copy.pl copies
  377             // list files over to /opt/mail/lists/current/email;
  378             // the Warning alert, hence
  379             // DistributionListErrorsWarning, hence dischk.pl,
  380             // run after 2:40 AM
  381             DistributionListErrorsWarning
  382 #endif
  383 
  384 #if mailserver
  385 #  if moscow
  386             ArchiveMailFileWarning
  387 #  endif
  388 #  if ! kiev
  389             MailQuotaWarning
  390 #  endif
  391 #endif
  392 
  393 #if ! ( moscow | berlin | geneva )
  394             DirsUserStatWarning
  395 #  if homedirlinksys
  396             RemoveHomeDirLinkWarning
  397 //          HomeDirLinksBrokenWarning
  398             HomeDirNonLinksWarning
  399 #  endif
  400 #endif
  401 
  402 #if warsaw
  403             PiktWebFileCtimeChangeWarning
  404 #endif
  405 
  406 #if mus | perf | comp
  407             RemoveOrphanedSASWorkDirsWarning
  408 #endif
  409 
  410 #if piktmaster
  411             PiktcFilesChecksumWarning
  412             PiktcFilesDiffWarning
  413             PiktcChecksumWarning
  414             PiktcDiffWarning
  415 #endif
  416 
  417             PiktFileProblemsWarning
  418 
  419             FileagesLogWarning
  420             FileagesWarning     // put this last
  421 
  422 ///////////////////////////////////////////////////////////////////////////////
  423 
  424 Notice          // things that deserve our attention but may or may
  425             // not require action; if we are busy, we can usually
  426             // safely ignore most or all notice alerts (simply
  427             // delete them)
  428 
  429 #ifndef test
  430     timing      50 3 * * * 10
  431 //  timing      50 3 * * 1-6    // never on a sunday!
  432 #elsedef
  433     timing      50 8-16/2 * * *
  434 #endifdef  // test
  435 
  436     nice        5
  437     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Notice' =pikt-notice"
  438 
  439     alarms
  440 
  441             DiskCapNotice
  442             DeleteCoreFilesNotice
  443             ClearTmpNotice
  444             FileSystemSizeChangeNotice
  445             MessagesScanNotice
  446             LogSystemTruncateNotice
  447             LogPiktTruncateNotice
  448             LogLocalTruncateNotice
  449 
  450 #if solaris
  451             RemoveCrashFilesNotice
  452             RemoveOrphanedPrintFilesNotice
  453 #endif
  454 
  455 #if ! no_usr_local
  456             FilesSystemBackupNotice
  457 #endif
  458 
  459 #if mailserver
  460             MailArcFileProblemsNotice
  461 #endif
  462 
  463 #if nismaster
  464             YPPasswdRetireAcctNotice
  465 #endif
  466 
  467 #if ! linux
  468             NumberedPacctFileNotice
  469             NumberedSyslogFileNotice
  470             EmptyNetscapeCacheNotice
  471 #endif
  472 
  473 #if vienna | mus | ( perf & ! paris7 )
  474             AutoRebootCronNotice
  475 #endif
  476 
  477 // the following systems all get mail spool directories via NFS crossmounts,
  478 // or they would not ordinarily have any mail (e.g., munich)
  479 #if ! ( milan | madrid | kiev2 | paris4 | paris5 | paris6 | paris7 | paris8 | munich | minsk | kiev | kiev2 )
  480             MailFileProblemsNotice
  481 #endif
  482 
  483 #if vienna
  484             MailChkErrorsNotice // for now, only gathers data,
  485                         // actual checking turned off;
  486                         // data required for =sortlist,
  487                         // run nightly via Warning on
  488                         // moscow
  489 #endif
  490 
  491 #if warsaw
  492             DMailWebClearNotice
  493 #endif
  494 
  495 ///////////////////////////////////////////////////////////////////////////////
  496 
  497 Info            // for informational purposes only, or for
  498             // occasional housekeeping tasks; we usually just
  499             // glance at info alerts or ignore them
  500             // altogether (simply delete them)
  501 
  502 #ifndef test
  503 #  if moscow
  504     timing      50 0 * * 1,3,5 10
  505 #  else
  506     timing      50 0 * * 1 10   // run to completion before the
  507                     // start of Warning
  508 #  endif
  509 #elsedef
  510     timing      50 8-16/2 * * *
  511 #endifdef  // test
  512 
  513     priority    5
  514     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Info' =pikt-info"
  515 
  516     alarms
  517 
  518             SystemFileStatChangeInfo
  519             DiskInfo
  520 
  521 #if mus | perf | comp
  522             FindMultiMediaFilesInfo
  523 #endif
  524 
  525 #if ! piktmaster
  526             CleanPiktDirsInfo
  527 #endif
  528 
  529 #if cssys
  530             DiskHogsInfo
  531 #endif
  532 
  533 ///////////////////////////////////////////////////////////////////////////////
  534 
  535 Security        // these usually deserve nearly immediate attention;
  536             // there's security-related stuff scattered
  537             // throughout other alerts; this is just another
  538             // place to put such stuff; we should probably
  539             // replace 'Security' with a different name, or have
  540             // a family of security alerts (see below)
  541 
  542     timing
  543             // 0-55/5 0-5 * * *
  544             20% 0-5 * * *   // on average, every 5 minutes
  545 
  546             // if some things are added to this that don't
  547             // need to run every five minutes, we can control
  548             // their scheduling by means of the appropriate
  549             // time checks within the individual alarms,
  550             // 'quit'ing and moving on to the next alarm
  551             // if the time is not right
  552 
  553     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Security' =pikt-security"
  554 
  555     lpcmd       "=lp =piktprinter"
  556 
  557     alarms
  558 
  559             // for now, just this, but we have security stuff
  560             // scattered throughout the rest of the configuration
  561             AfterHoursUserActivitySecurity
  562 
  563 // the following is for future development; for an explanation, please see
  564 // the sample defines.cfg, also the Security Considerations section of the
  565 // PIKT Reference and the distribution README
  566 //
  567 //  alarms
  568 //#ifdef attentive
  569 //          SecurityAlarm1A     // must-do, day-to-day stuff,
  570 //          SecurityAlarm1B     // and/or low cost to run
  571 //          ...
  572 //#  ifdef cautious
  573 //          SecurityAlarm2A
  574 //          SecurityAlarm2B
  575 //          ...
  576 //#    ifdef worried
  577 //          SecurityAlarm3A
  578 //          SecurityAlarm3B
  579 //          ...
  580 //#      ifdef paranoid
  581 //          SecurityAlarm4A     // resource-intensive and/or
  582 //          SecurityAlarm4B     // time-consuming stuff
  583 //          ...
  584 //#      endifdef
  585 //#    endifdef
  586 //#  endifdef
  587 //#endifdef
  588 //
  589 // use per-machine and per-os '#if' statements to fine tune as necessary;
  590 // the overal idea here is:  tend to do more, and do more often, resource-
  591 // intensive things on the more powerful machines, and tend to be more
  592 // paranoid on the mission-critical machines.
  593 
  594 ///////////////////////////////////////////////////////////////////////////////
  595 
  596 #if piktmaster
  597 
  598 Admin           // for scripts aiding in the administration of
  599             // the PIKT system
  600 
  601     timing      10 2 * * *
  602     drift       5
  603 
  604     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Admin' =pikt-admin"
  605 
  606     scripts
  607 
  608             MakeFilesPiktObjectsAdmin
  609 
  610             IncludeFilesBackupAdmin
  611             UpdateIncludeFilesAdmin
  612             IncludeFilesSizeChangeAdmin
  613 
  614             InstallDynamicConfigFiles
  615 
  616             InstallPiktMasterObjectsAdmin   // should be run
  617                             // at the last
  618 
  619 #endif  // piktmaster
  620 
  621 #if moscow
  622 
  623 Admin
  624 
  625     timing      45 0 * * *  // should be run before Warning alert
  626                     // on moscow
  627 
  628     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Admin' =pikt-admin"
  629 
  630     scripts
  631 
  632             FindAllUsersAdmin
  633             FindMailmanAddressesAdmin
  634             FindAuthUsersAdmin
  635 
  636 #endif  // moscow
  637 
  638 ///////////////////////////////////////////////////////////////////////////////
  639 
  640 Debug           // for PIKT self-monitoring; these deserve
  641             // fairly close attention, especially on the
  642             // piktmaster, where we not only run more often,
  643             // we also cron it
  644 
  645 #ifndef test
  646 #  if piktmaster
  647             // crond runs Debug at alternating intervals like so:
  648             // 55 1,3,5,7,9,11,13,15,17,19,21,23 * * * /usr/bin/nice -10 /pikt/bin/pikt +M "/usr/bin/mailx -s 'PIKT Alert on vienna: Debug' brahms\@hamburg" +A Debug
  649     timing      55 0-22/2 * * *
  650 #  else
  651     timing      55 2-22/4 * * *
  652 #  endif
  653 #elsedef
  654     timing      55 8-16/2 * * *
  655 #endifdef  // test
  656 
  657     nicecmd     "=nice -10"
  658     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Debug' =pikt-debug"
  659 
  660     alarms
  661 
  662             PiktHeartbeatDebug
  663 
  664 #if piktmaster
  665 
  666             // it's important to run PiktDaemonProblemsCritical
  667             // independently in two separate alerts, Critical
  668             // and (our choice) Debug; if you just run it in one
  669             // alert, and that alert hangs, then you miss this
  670             // vital alarm; we recommend, too, that you run the
  671             // Debug alert via cron; in addition to the above
  672             // schedule, where 'pikt +A Debug' is invoked by
  673             // piktd, we also have cron invoke Debug (from our
  674             // root crontab):
  675             //
  676             // 55 1,3,5,7,9,11,13,15,17,19,21,23 * * * /usr/bin/nice -10 /pikt/bin/pikt +M "/usr/bin/mailx -s 'PIKT Alert on vienna: Debug' brahms\@hamburg" +A Debug
  677             //
  678             // so, we run PiktDaemonProblemsCritical independently
  679             // under three different schedules:
  680             //
  681             // 30 * * * *             [in the Critical alert,
  682             //                         invoked by piktd]
  683             // 55 0-22/2 * * *        [in the Debug alert,
  684             //                         invoked by piktd]
  685             // 55 1,3,5,7,9,11,13,15,17,19,21,23 * * *
  686             //                        [in the Debug alert,
  687             //                         invoked by cron]
  688 
  689             PiktDaemonProblemsCritical
  690 
  691 #endif
  692 
  693             PiktStatusChkDebug
  694             PiktFileNotExistDebug
  695             FileagesPiktDebug
  696             PersistentPiktRunDebug
  697             PiktcSvcLogScanDebug
  698             PiktdLogScanDebug
  699             PiktEmergencyLogScanDebug
  700             PiktUrgentLogScanDebug
  701             PiktCriticalLogScanDebug
  702             PiktWarningLogScanDebug
  703             PiktNoticeLogScanDebug
  704             PiktInfoLogScanDebug
  705             PiktSecurityLogScanDebug
  706 
  707 #if piktmaster
  708             PiktcLogScanDebug
  709 #endif
  710 
  711 #if piktmaster | moscow
  712             PiktAdminLogScanDebug
  713 #endif
  714 
  715             PiktDebugLogScanDebug
  716 
  717 ///////////////////////////////////////////////////////////////////////////////
  718 
  719 #if backupclient
  720 
  721 Backup          // backup stuff
  722 
  723 #ifndef test
  724     timing      45 2 * * 3,5 10     // wed,fri
  725                         // sun-tue, thu, sat, no run
  726 #elsedef
  727     timing      45 8-16/2 * * *
  728 #endifdef  // test
  729 
  730     nice        5
  731     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Backup' =pikt-backup"
  732 
  733     alarms
  734             =backup_alarms
  735 
  736 #endif  // backupclient
  737 
  738 ///////////////////////////////////////////////////////////////////////////////
  739 
  740 #if moscow
  741 
  742 Red         // deals with extraordinary situations
  743 
  744     timing      0-50/10 * * * *
  745     drift       2
  746 
  747     priority    5
  748 
  749     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Red' =pikt-emergency"
  750 
  751     alarms
  752 
  753             // DeadManActivityEmergency
  754             // TopLog
  755             ForwardFileExistDebug
  756 
  757 #endif
  758 
  759 ///////////////////////////////////////////////////////////////////////////////
  760 
  761 /*
  762 #if [name of flakey machine]
  763 
  764 DeathWatch      // these usually involve logging only and not alerts
  765 
  766     timing      5-50/15 * * * *
  767 
  768     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: DeathWatch' =pikt-debug"
  769 
  770     alarms
  771 
  772             TopLog
  773             PsLog
  774 
  775 #endif
  776 */
  777 
  778 ///////////////////////////////////////////////////////////////////////////////
  779 
  780 /*
  781 #if murmansk
  782 
  783 Special         // for special circumstances
  784 
  785     timing      5,35 * * * *
  786 
  787     priority    -5
  788     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Special' =pikt-emergency"
  789 
  790     lpcmd       "=lp =piktprinter"
  791 
  792     alarms
  793 
  794             PasswdFileProblemsWarning
  795 
  796 #endif  // murmansk
  797 */
  798 
  799 ///////////////////////////////////////////////////////////////////////////////
  800 
  801 #ifdef test
  802 
  803 //#  if piktmaster
  804 
  805 Test            // use this for testing newly developed alarm scripts;
  806             // install with 'piktc -iv +D test +A Test +H ...'
  807             // or maybe 'piktc -iv +D test debug verbose -D page doexec +A Test +H ...'
  808             // after testing, remove all traces of
  809             // the Test alert with 'piktc -tv +A Test +H ...'
  810 
  811 //  timing      =piktnever
  812     timing      5-50/15 * * * *
  813     mailcmd     "=mailx -s 'PIKT Alert on =pikthostname: Test' =pikt-test"
  814     alarms
  815             //CksumDifferenceCritical
  816             //RaidStatusNotOptimalEmergency
  817             CPUUsageUrgent
  818 
  819 //#  endif  // piktmaster
  820 
  821 #endifdef  // test
  822 
  823 ///////////////////////////////////////////////////////////////////////////////
  824 ///////////////////////////////////////////////////////////////////////////////
  825 
  826 #if moscow
  827 
  828 BakMail     // do nightly backup of /var/mail
  829 
  830     timing      40 23 * * *
  831     priority    10
  832     execcmd     "=date >> =logdir/BakMailRpt.log; =prgdir/bakmail.pl -R 1 2>&1 >> =logdir/BakMailRpt.log; =date >> =logdir/BakMailRpt.log"
  833 
  834 #endif
  835 
  836 ///////////////////////////////////////////////////////////////////////////////
  837 
  838 #if moscow
  839 
  840 GetAcctsAliases     // run getaccts_aliases.pl nightly
  841 
  842     timing      50 0 * * *
  843     drift       5
  844     priority    10
  845     execcmd     "=acctmgrbindir/get_acctsaliases.pl"
  846 
  847 #endif
  848 
  849 ///////////////////////////////////////////////////////////////////////////////
  850 
  851 #if nosendmail & ! linux
  852 
  853 ProcessMailQueue
  854 
  855 #  if misscritsys
  856     timing      5-50/15 * * * *
  857 #  else
  858     timing      40 * * * *
  859 #  endif
  860     drift       3
  861     execcmd     "=sendmail -q"
  862 
  863 #endif
  864 
  865 ///////////////////////////////////////////////////////////////////////////////
  866 ///////////////////////////////////////////////////////////////////////////////