Solved

conerrt sar data to graph

Posted on 2011-02-22
10
2,096 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

759 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

24 Experts available now in Live!

Get 1:1 Help Now