Hello Martin, Monday, 20 May 2002, you wrote:
>> I have no idea what's causing the load to go that high. It never does >> it when I'm there! Any ideas how I can find out what's causing it? >> (without sitting for days watching top :-). >> >> I guess I need some kind of daemon/cron script that will just sit >> there and tell me what's going on.... MM> Well if you want a little-effort/big-log solution :-) you could always MM> have a cron line something like: MM> */5 * * * * top -n 1 -b |head -15 >> /home/mcr/top.dump 2>> /home/mcr/top.dump.err MM> but adjust the */5 if you want it to log at some interval other than MM> every 5 minutes and adjust the head -15 if you want some other number of MM> lines logged. *thinks* cron script running every minute that mails me output of top if load avg > 10 now where's the scripting book... Mark -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
