LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-05-2012, 07:03 AM   #1
thbaig
LQ Newbie
 
Registered: Feb 2008
Posts: 11

Rep: Reputation: 0
Server Stats History


Hi,
OS = Fedora Core, CentOs 5

I am in process to install some applications on my servers.
But before doing that i want to know the load of my current system.

I want to review the last 7-10 days stats for consumption of CPU,Memory,Network and disk IO.

Is there some built in stat mechanism exist or I have to install some software ?

If software, kindly recommend .

thank you
 
Old 01-05-2012, 07:43 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
Code:
#top
(this will show you the running services with the amount of CPU and memory utilized)

press shift+m

it will show you services using maximum memory

press shift+p
it will show you services using maximum CPU
Code:
#vmstat
This will show you statistics of your CPU and memory
Code:
#free -m
this will show your RAM size and swap memory both free and used
or if you want to download additional tool then look for "collectl"

for network
Code:
#netstat -ntlp
for additional options
Code:
#man netstat
for HDD info
Code:
#df -h
#fdisk -l

Last edited by deep27ak; 01-05-2012 at 07:44 AM.
 
Old 01-05-2012, 07:49 AM   #3
thbaig
LQ Newbie
 
Registered: Feb 2008
Posts: 11

Original Poster
Rep: Reputation: 0
thank you deep27ak
but as I mentioned that I want to get stats over specific period.
How can I do so ?
 
Old 01-05-2012, 08:09 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
well I don't think there is any such package or tool by default, you might have to download

here are few which I found might be helpful

http://www.thegeekstuff.com/2011/03/sar-examples/
http://www.thegeekstuff.com/2011/12/...itoring-tools/
 
1 members found this post helpful.
Old 01-05-2012, 10:09 AM   #5
thbaig
LQ Newbie
 
Registered: Feb 2008
Posts: 11

Original Poster
Rep: Reputation: 0
thank you deep27ak for this wonderful info
 
Old 01-05-2012, 01:31 PM   #6
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 266

Rep: Reputation: 43
I think sar is part of the sysstat package in centos and fedora. I use that to keep history on the servers. Keep in mind that it will only keep history from when you install it and it will only keep 7 days by default if I recall correctly.
 
Old 01-07-2012, 07:36 AM   #7
markseger
Member
 
Registered: Jul 2003
Posts: 241

Rep: Reputation: 25
SAR saves a month's worth of data in a continuously rolling set of files with the day of the month in their name. Only problem is by default it only samples once every 10 minutes which is pretty useless. At least change it to a minute or even less.
-mark
 
Old 01-24-2012, 05:27 AM   #8
thbaig
LQ Newbie
 
Registered: Feb 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Analyze/Read muultiple sar files at once

Hi,
I have successfully configured sar. now I have stat files for over one week.

I found Ksar to read and display sar file, but the problem is ,it only read a single file.

Can I extract 1 week files once to have weekly analysis ?

Is there some tool that I can use to analyze multiple sar files at once to have over x time analysis?
 
Old 01-24-2012, 05:42 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
I use vnstat for monitoring my box with respect to days and months but it will start monitoring from the day you install the package

follow these pages for more help
http://humdi.net/vnstat/
http://linux.softpedia.com/get/Syste...at-13934.shtml
 
Old 01-24-2012, 05:50 AM   #10
thbaig
LQ Newbie
 
Registered: Feb 2008
Posts: 11

Original Poster
Rep: Reputation: 0
thank you Deepak.
But I have one week stats now with sar so for vnstat, i have to wait for one more week.

Can you please tell me how can I utilize my multiple sar files ?
 
Old 01-24-2012, 06:08 AM   #11
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
I am not very sure how to extract a week analysis as I don't use this much

but you can use ksar which will give you a graphical sar graph of all the process and services running including the memory and cpu utilization

you can check this link if you can find anything helpful

http://www.cyberciti.biz/tips/identi...with-ksar.html
 
Old 01-24-2012, 08:13 AM   #12
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 266

Rep: Reputation: 43
You can dump multiple files into one file.

Code:
LC_ALL=C sar -A > /tmp/sar.data.txt
You can specify files by using the -f option for sar.

Code:
LC_ALL=C sar -A -f /var/log/<sar files location>/<sar file name> >> /tmp/sar.data.txt
Then all you need to do is copy the file to where you can use ksar to create the graphs.
 
1 members found this post helpful.
Old 01-24-2012, 09:50 AM   #13
thbaig
LQ Newbie
 
Registered: Feb 2008
Posts: 11

Original Poster
Rep: Reputation: 0
thank you grim.


Quote:
Originally Posted by grim76 View Post
You can dump multiple files into one file.

Code:
LC_ALL=C sar -A > /tmp/sar.data.txt
You can specify files by using the -f option for sar.

Code:
LC_ALL=C sar -A -f /var/log/<sar files location>/<sar file name> >> /tmp/sar.data.txt
Then all you need to do is copy the file to where you can use ksar to create the graphs.

Last edited by thbaig; 01-24-2012 at 10:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Slackware Server Stats? enorbet Slackware 14 01-13-2011 05:38 AM
Server stats furio Linux - Server 1 05-06-2008 06:17 PM
mysql using 50%-110% of cpu / Getting [statscheck] Stats/Server Overload on server!!! CrewXp Linux - Server 2 05-16-2007 05:28 AM
Sendmail Server Stats matsko Linux - Software 1 02-05-2006 08:54 AM
Server Stats App? nicedreams Linux - Software 2 11-15-2005 02:25 PM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration