PIKT

Samples: Process Time Limits

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


This process_times_objects.cfg example specifies process time limits, which if exceeded, alert e-mail may be sent and/or the indicated processes may be killed.  Note that it would also be possible, for example, to add thresholds to log excess process times, or to page the system administrators.

///////////////////////////////////////////////////////////////////////////////
//
// process_times_objects.cfg
//
///////////////////////////////////////////////////////////////////////////////

ProcessTimes

//      process                 report          incr            kill

#ifndef debug

        fsflush                 1200            10              999999
        sshd                     120             5              999999
        inetd                     60            10              999999

#  if solaris
        Xsun                     120            10              999999
        dtsession                120            10              999999
#  endif

// local stuff follows

#  if nismaster
        ypserv                   120            10              999999
#  endif

#  if db
        iigcc                    120            10              999999
        iidbms                  2400            30              999999
        gzip                     120            10              999999
#  endif

#  if ! paris7
        matlab                   240            20              999999
#  endif

#  if brussels
        goserver                  60            10              999999
#  endif

#  if mailserver
        imapd                     15            5               30
#  endif

[...]

#endifdef  // debug

        DEFAULT                   60            10              999999

///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the ProcessTimes.obj file to each PIKT slave system with the command:
# piktc -iv +O ProcessTimes +H all        [or: ... -H downsys]

[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.

Computer Books at Amazon.com

Linux Cookbook
Linux Cookbook

Red Hat Linux Administration: A Beginner's Guide
Red Hat Linux Administration: A Beginner's Guide

Unix Power Tools
Unix Power Tools

SUSE Linux 9 Bible
SUSE Linux 9 Bible

From Bash to Z Shell: Conquering the Command Line
From Bash to Z Shell: Conquering the Command Line