LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Continuous process monitoring

[ILUG] Continuous process monitoring

cybersean3000 at yahoo.com cybersean3000 at yahoo.com
Mon Sep 17 11:05:11 IST 2001


You may want to implement a network management utility.  
Scotty/Tkined is an excellent package, and you can get it here if 
your distribution does not provide a binary pacakge:

http://wwwhome.cs.utwente.nl/~schoenw/scotty/

On 17 Sep 2001, at 11:01, Niall O Broin wrote:

> I manage a box which provides web and mail services for a number of
> companies. The load average lately has on occasion gone sky high and I need
> to get a handle on what's going on. Of course I can use top, ps or vmstat at
> any given moment to see what's happening but I'd like to get a look at
> trends or the ongoing situation, particularly WRT memory and CPU usage by
> apache and Communigate Pro (a commercial SMTP server). I tried this
> 
> #!/usr/bin/perl
> open TOP, "top -n1 -b|";
> while (<TOP>) {
>   if ($header_done) {
> 	 ($cpu, $mem, $command) = unpack("x50 A4 x A4 x8 A*", $_);
> 	 $cpu{$command} += $cpu;
> 	 $mem{$command} += $mem;
>   }
>   $header_done = ($header_done || /PID/)
> }
> 
> print "Process\tCPU\tMemory\n";
> foreach ("httpd", "httpdcomet", "CGServer", "mysqld") {
>   print "$_\t$cpu{$_}\t$mem{$_}\n";
> }
> 
> 
> which I intended to run every minute or so, but it's not producing accurate
> results - CGServer (the Communigate Pro process, of which there may be ~100
> running) uses 112% of CPU - obviously the figures from top are not accurate
> enough to do this with them. Does any know of tools which might help ? I
> have looked around, but tend to find various things like GUIs for top etc.
> which don't really help. I really want to find on a continuous basis how
> much of a load the above 4 processes (and there may of course be multiple
> instances of each) are producing (BTW httpdcomet is a special version of
> apache).
> 
> 
> 
> Niall
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell