Great Circle Associates Majordomo-Users
(October 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: question
From: Susan Chin <susan @ sfsu . edu>
Date: Wed, 14 Oct 1998 16:01:20 -0700 (PDT)
To: majordomo-users <majordomo-users @ GreatCircle . COM>

I would very much appreciate it if someone would please explain what the
following code in the in the majordomo.cf file does.

# You can force Majordomo to delay any processing if the system load is too
# high by uncommenting the following lines.  THIS ONLY WORKS if your "uptime"
# command (usually found in /usr/bin/uptime or /usr/bsd/uptime)
# returns a string like:
#   5:23pm  up  5:51,  9 users,  load average: 0.19, 0.25, 0.33
#
#$max_loadavg = 10;                 # Choose the maximum allowed load
#
#$uptime = `/usr/bin/uptime` if -x </usr/bin/uptime>;     # Get system uptime
#$uptime = `/usr/bsd/uptime` if -x </usr/bsd/uptime>;     # or uptime is over here.
#
#($avg_1_minute, $avg_5_minutes, $avg_15_minutes) =
#    $uptime =~ /average:\s+(\S+),\s+(\S+),\s+(\S+)/;
#
#exit 75 if ($avg_15_minute >= $max_loadavg);           # E_TEMPFAIL
#

Kindest Regards,
_______________________________________

Susan Chin
Computing Services
San Francisco State University



Follow-Ups:
Indexed By Date Previous: newbie setup help
From: jaudall@students.wisc.edu
Next: Re: question
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: newbie setup help
From: "Joshua" <jaudall@students.wisc.edu>
Next: Re: question
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com