[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] CPU Usage Logs - 24 hour summary report?
- Subject: Re: [cobalt-users] CPU Usage Logs - 24 hour summary report?
- From: "H.P. Stroebel" <hpstr@xxxxxxxxxxxxx>
- Date: Sun Aug 6 14:54:19 2000
- Organization: Rechtsanwalt
Dee Dreslough schrieb:
>
> Can 'Top' be set to make a report every 24 hours, like a summary?
>
> Top only seems to be interactive - like you have to sit there and watch it
> to find something out...
top has a non-interactive, but always real-time mode. (man top)
what information precisely do you want ? you can write a shell script to
append the output of commands into a text file and have that mailed to
you (cronjobs), if you want regular information, or you can read out and
parse the files in /proc/ directly (top does nothing other).
if you want more, you can parse the output, compare it to a "database"
and have mailed only abnormal situations. i`m doing a modular
perl-script that contains some checks, but it`s still very very alpha
(and i don`t know yet if i`ll ever publish it).
--
H. P. Stroebel, Germany
CGI-FAQ for Raq-Newbies :
http://users.iol.it/hpstr/
A problem to some is a 'feature' to others.