Re: Question on Bash Shell Script for Load Performance Monitoring
From: Paul Lutus (nospam_at_nosite.zzz)
Date: 10/27/04
- Previous message: Chris: "Re: Question on Bash Shell Script for Load Performance Monitoring"
- In reply to: aixenv: "Question on Bash Shell Script for Load Performance Monitoring"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Oct 2004 17:26:10 -0700
aixenv wrote:
> I am writing a script to monitor a server which has halted at a
> strange hour with no visible reason, I have reason to suspect it could
> be a runaway qmail process or the system is just getting under heavy
> load, or both.
>
> SO I wrote the following script, it works, it just seems very
> "sloppy", and I was just curious how else I could accomplish the same
> goal.
>
> Also i thought of emailing the output of /tmp/srvload.log to an email
> address and thought it might be nice to sort newest entries in
> /tmp/srvload.log to the beginning of the file versus appending them to
> the end of the file. however i am unclear how to proceed and
> accomplish this goal
For this specific part,
$ man tac
And to separate only the newest entries from the original log file:
$ man tail
-- Paul Lutus http://www.arachnoid.com
- Previous message: Chris: "Re: Question on Bash Shell Script for Load Performance Monitoring"
- In reply to: aixenv: "Question on Bash Shell Script for Load Performance Monitoring"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]