Solved

conerrt sar data to graph

Posted on 2011-02-22
10
2,252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Invest in your employees with these five simple steps to improve employee engagement and retention.
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.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

691 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