Solved

conerrt sar data to graph

Posted on 2011-02-22
10
2,182 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

820 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