Solved

conerrt sar data to graph

Posted on 2011-02-22
10
2,123 Views
Last Modified: 2013-12-05
I am looking to convert sar data to graphcal representation for memory, cpu utilization. Is there any such utility or a way to do . I have op-manager but it doesn't give me really good graph or correct cpu and memory utlilization data and graph. I have all suse linux servers. I have heard cacti but it will be more work to setup such thing as I already have op-manager but it seems it is not useful, so looking somehow to use sar and convert to its data to graphs
0
Comment
Question by:solarmitra
  • 5
  • 5
10 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 34958863
Hi,

how about kSar?
http://sourceforge.net/projects/ksar/

It needs Java 1.5 or higher and processes "sarxx" report files or "sar -A" output redirected to a text file.

wmp
0
 

Author Comment

by:solarmitra
ID: 35018587
ksar seems good but I am not sure how can I get the statistics for range of dates ( e.g. one week) or month. How can I concat range of days.
0
 

Author Comment

by:solarmitra
ID: 35018596
I also check sarcheck.com, but that seems expensive for me
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 35018718
Up to now I didn't find another solution as to just concatenate the needed sarxx files by means of "cat".

cat sar01 sar02 sar03 ... sarnn > sar.total

ksar will sort the data correctly, that's no problem.

You can give the cat command as an input option to kSar ("-input 'cmd://...' "), in this case without "> outputfile", of course.

It's not very elegant, but I don't see a better way.

wmp
0
 

Author Comment

by:solarmitra
ID: 35021359
# cat sa.2011_02_27 sa.2011_02_28  > sa_total

sar -f sa_total -A > /usr/local/src/sar_g/`hostname`.sar.tt.txt
End of system activity file unexpected

I get this error End of system activity file unexpected".
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 35021463
I've been talking about "sar" files (i.e. ASCII files as produced by "sar -A" or "sa2"), not the binary "sa" files, which you can't "cat" together!

wmp
0
 

Author Comment

by:solarmitra
ID: 35021921
Oh I see. That worked fine now.
0
 

Author Comment

by:solarmitra
ID: 35021972
ksar still a manual process. Is there way I can graph the trend from sar data. Which one you think better cacti or munin ? I have op-manager but I don't find it is useful in collecting stats and draw a trend graphs
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 35022856
Afaik neither cacti nor munin can handle sar data.

How about sar2rrd?
I never used it, but I think I'll give it a try one of these days.

wmp
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 35022880
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 4 39
Magic Software info 18 125
php session folder question (Code Igniter) 3 74
VLC Video Player No Longer Works after installing HandBrake, Fedora 25 5 126
If your app took Google’s lash recently, here are the 5 most likely reasons.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now