Re: How to find CPU consumption?
Hi Ashwin, > Can u pls give us more info on MRTG and where can i find it MRTG is a graphing program that runs scripts every 5 mins to record data and graph this data in daily, weekly, monthly and yearly charts. You can download MRTG from http://www.mrtg.org My CPU script is: #!/bin/bash # Get avg CPU usage LINE=`sar -u 1 5 | grep Average` set $LINE # print user% echo $3 # print system% echo $5 # print uptime uptime | sed 's/.* up \([^,]*\), .*$/\1/' # print machine name uname -a | cut -d " " -f 2 My MRTG config for CPU graph is: Target[cpu]: `/root/scripts/mrtg/cpu` MaxBytes[cpu]: 100 Title[cpu]: CPU Usage % PageTop[cpu]: CPU Statistics Options[cpu]: growright, gauge, nopercent, noarrow, nobanner Suppress[cpu]: y YLegend[cpu]: CPU Usage % ShortLegend[cpu]: % Legend1[cpu]: User CPU % Legend2[cpu]: System CPU % LegendI[cpu]: User: LegendO[cpu]: System: Hope this helps -- Regards, +---+-+ | Peter Kiem| E-Mail: <[EMAIL PROTECTED]> | | Zordah IT | Mobile: +61 0414 724 766| | IT Consultancy &| WWW : www.zordah.net | | Internet Hosting| ICQ : "Zordah" 81 | +---+-+ ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: How to find CPU consumption?
[ PLEASE trim content to just the relvant bits, and reply _below_ the quoted text. ] On 08:57 01 Feb 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: | Can u pls give us more info on MRTG and where can i find it See this: http://freshmeat.net/search/?q=mrtg -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ If it can't be turned off, it's not a feature. - Karl Heuer ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: How to find CPU consumption?
Can u pls give us more info on MRTG and where can i find it - Original Message - From: "Peter Kiem" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 6:22 AM Subject: Re: How to find CPU consumption? > > > > I have a php based webmail program installed on Intranet and also > > > > planning to install on Cobalt servers.Can anyone tell me how do I find > > > > out the CPU consumption for this app on Internet as well as on Intranet > > > > > > Run the "top" program on your intranet server and look at how much CPU > the > > > apache processes are using? > > > > It would also be relatively easy to write a PHP script that either > > parses the output of 'top' or reads /proc itself, then serves the info > > to a webpage. > > Even better is to use MRTG. I wrote scripts to monitor CPU usage, disk > space, disk io, apache activity, postfix activty etc etc etc > > -- > Regards, > +---+-+ > | Peter Kiem| E-Mail: <[EMAIL PROTECTED]> | > | Zordah IT | Mobile: +61 0414 724 766| > | IT Consultancy &| WWW : www.zordah.net | > | Internet Hosting| ICQ : "Zordah" 81 | > +---+-+ > > > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: How to find CPU consumption?
> > > I have a php based webmail program installed on Intranet and also > > > planning to install on Cobalt servers.Can anyone tell me how do I find > > > out the CPU consumption for this app on Internet as well as on Intranet > > > > Run the "top" program on your intranet server and look at how much CPU the > > apache processes are using? > > It would also be relatively easy to write a PHP script that either > parses the output of 'top' or reads /proc itself, then serves the info > to a webpage. Even better is to use MRTG. I wrote scripts to monitor CPU usage, disk space, disk io, apache activity, postfix activty etc etc etc -- Regards, +---+-+ | Peter Kiem| E-Mail: <[EMAIL PROTECTED]> | | Zordah IT | Mobile: +61 0414 724 766| | IT Consultancy &| WWW : www.zordah.net | | Internet Hosting| ICQ : "Zordah" 81 | +---+-+ ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: How to find CPU consumption?
On Thu, Jan 31, 2002 at 07:49:02AM -, Peter Kiem wrote: > Hi Ashwin, > > > I have a php based webmail program installed on Intranet and also > > planning to install on Cobalt servers.Can anyone tell me how do I find > > out the CPU consumption for this app on Internet as well as on Intranet > > Run the "top" program on your intranet server and look at how much CPU the > apache processes are using? It would also be relatively easy to write a PHP script that either parses the output of 'top' or reads /proc itself, then serves the info to a webpage. If you're interested in that, but aren't sure how to accomplish it, send me a mail off-list...it would be an interesting project. (For a quicker solution, you could probably find a prewritten script on Freshmeat.) HTH, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 "Summit meetings tend to be like panda matings. The expectations are always high, and the results usually disappointing." -- Robert Orben ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: How to find CPU consumption?
Hi Ashwin, > I have a php based webmail program installed on Intranet and also > planning to install on Cobalt servers.Can anyone tell me how do I find > out the CPU consumption for this app on Internet as well as on Intranet Run the "top" program on your intranet server and look at how much CPU the apache processes are using? -- Regards, +---+-+ | Peter Kiem| E-Mail: <[EMAIL PROTECTED]> | | Zordah IT | Mobile: +61 0414 724 766| | IT Consultancy &| WWW : www.zordah.net | | Internet Hosting| ICQ : "Zordah" 81 | +---+-+ ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
How to find CPU consumption?
hi guys, I have a php based webmail program installed on Intranet and also planning to install on Cobalt servers.Can anyone tell me how do I find out the CPU consumption for this app on Internet as well as on Intranet Regards Ashwin