LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-01-2011, 07:38 AM   #1
ekcr
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Rep: Reputation: Disabled
Perf-graphs (performance monitoring graphs) on linux


Good Day Linux People/Gurus

I have been given a task to install and generate perfgraphs on Linux. I have neve done this. If I google the only information I get is based on Windows platforms. Is there anyone with information on how I should go about it?

You might not tell everything but if you give me the direction(s), I will get to the destination?

Thank you in advance.
Emanuel
 
Old 12-01-2011, 08:20 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,106

Rep: Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805
Well, it's an oldie -- but a goodie -- that you might want to look into: sar - Collect, report, or save system activity information (man sar). It will produce a ton of stuff that you can use to create graphs (folks do love those pie charts, don't they). While you're reading the manual page, you also want to read all the "see also" manual pages, too. Also, another oldie but goodie is gnuplot http://www.gnuplot.info (that will take all the stuff you save with sar and make pretty pictures); gnuplot is usually already installed on Linux systems.

There's NTOP, a tool that shows the network usage, similar to what the popular top command does (in a web page); see http://en.wikipedia.org/wiki/Ntop for an overview, http://www.ntop.org for software.

There are other ways and means but without knowing what you're trying to monitor and report on...

Hope this helps some.
 
Old 12-06-2011, 02:50 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-07-2011, 09:42 PM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12 and higher
Posts: 229

Rep: Reputation: 51
Googling this exact phrase:
Code:
linux performance monitor graph
seemed to produce some relevant hits.
 
Old 12-08-2011, 08:15 AM   #5
markseger
Member
 
Registered: Jul 2003
Posts: 241

Rep: Reputation: 25
I've been doing performance monitoring for longer than I want to imagine. Turns out there are very few tools that do it all. For example, you can run a variety of data collection tools like vmstat, iostat, netstat, etc or even sar. The problem is you can't easily plot the data without finding some other utility to plot it. The best plotting tool I've found for the job as a previous poster noted is gnuplot. It is very fast and accurate.

When I wrote collectl, one goal of which was a single tool that could do the job of all other data collection tools. but the other goal was to also be able to report the data in a plottable format. Not wanting to overburden collectl with trying to do to much, I then wrote colplot. This tool knows all about collectl formatted collectl data. It's web-based (though it also has a cli) and you simply point it to a directory containing collectl plot data and check off some boxes depending on what data you want to plot. It's real easy to use.

You can learn more about collectl here - http://collectl.sourceforge.net and colplot here: http://collectl-utils.sourceforge.net/

just install the 2 rpms and type "/etc/init.d/collectl start" and it will begin collecting data for you. then some time in the future you can convert the collectl raw data to plot format data in /tmp with the following command:

collectl -p "/var/log/collectl/*" -P -oz -f /tmp

there are a lot of other ways to do this but I'm trying to keep things simple.

now browse to http:/yourhostname/colplot

and when colplot comes up, change the directory to /tmp, check 'allplots', and then click on "generate plot". it's that simple

-mark
 
1 members found this post helpful.
Old 12-08-2011, 11:49 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,106

Rep: Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805
Hey, collectl looks like a Real Good Thing.

I've downloaded it, converted the RPM to something I can use (Slackware doesn't "do" RPM, DEB, YUM or other similar packages) with src2pkg (and rpm2txz just to compare) and it installs and does what it says it does. Nice. Would be handy to have a plain old tar.gz with configure, but, what the heck, it works and that's good enough.

Nice job.
 
Old 12-08-2011, 11:55 AM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
I don't know about awstats but it's something with graphs.

Maybe worth to look at.

good luck
 
Old 12-09-2011, 05:16 AM   #8
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,915

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
Quote:
Originally Posted by markseger View Post
When I wrote collectl, one goal of which was a single tool that could do the job of all other data collection tools. but the other goal was to also be able to report the data in a plottable format.
Yes, there are more perf monitoring tools than you can shake a stick at and almost every one of them does quite an interesting thing, but is a bit messy, in terms of understanding the options or in taking the output and processing it further, without doing stuff that is in danger of breaking with the next release. (Or, possibly even worse, having to collect the output from multiple utilities, and filter and combine them to make one overall graph. That really is going to break at the next release.)

I've always thought that collectl looks like one of the honourable exceptions, in that, when you look at the output, and when you consider the options, the thought inevitably occurs 'whoever wrote that has actually thought about the succeeding problem of dealing with the output, and has tried to keep the problems under control'.

So, I just want to say thank you for doing this right. I'm not sure that this is as much of a reward as is deserved, but it is important that you do know that good work is appreciated, even if only in a small way.
 
Old 12-09-2011, 07:29 AM   #9
markseger
Member
 
Registered: Jul 2003
Posts: 241

Rep: Reputation: 25
salasi - thanks for you kind words. as far as a tar.gz for installation, didn't you download that? if you're new to sourceforge it's not always obvious how to get it, but if you start with the collectl page and click on download button the default is set to rpm if you come in on linux box. BUT if you click on the 'collectl' folder below you can expand it a few time and eventually get to a src.rpm as well as a tar.gz. When you do untar it you'll find INSTALL which you can just execute.

so if you do like collectl that much I really have to suggest you try colmum, which is also in collectl-utils. with it, you can do a 'top' of any collectl command across a cluster of hundreds of nodes or even more! you can even sort in either direction on any column. I'm still trying to figure out why it hasn't caught on more. I figure either people don't care about seeing this sort of information or they just haven't tried it yet.

I live in the work of High Performance Computing where you have very large clusters of identical nodes sharing the execution of complex programs and I can't live w/o it.

take it for a drive and report back. I promise you'll like it and won't regret taking the 5 minutes it will take to download,install and run...

-mark
 
Old 12-09-2011, 08:38 PM   #10
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,915

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
Quote:
Originally Posted by markseger View Post
salasi - thanks for you kind words. as far as a tar.gz for installation, didn't you download that?
Kind words? Least that you deserve, because it really is a good piece of work. As far as installation, on openSUSE, collectl is in a repo (not the main repo, but the server/monitoring one, I think), so I just grabbed that. Next time, I need this kind of thing, I hope I'll remember about collectl-utils - I've certainly bookmarked the page.

About why it is not more popular, I have to say I really haven't a clue. I'm sure everyone starts with top, and top looks good for simple stuff and you just want to get some kind of clue what is going on, and, up to a point, it does do that. The next step to some other *top then seems obvious, but it may not be the most useful one. I only found it by searching for what was available in repos - can't really remember exactly what I was looking for at the time, but it wasn't exactly this - and my reaction to a useful-sounding utility that I don't know is always 'Why don't I give that a go, it may not do exactly what I want, but it is something else that might be useful sometime, and i'll only learn by trying it out?' I guess that most people don't have that reaction.
 
Old 12-09-2011, 10:57 PM   #11
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
As mentioned gnuplot is one good utility for this purpose.

-------

In my case, I capture sar(1) data, and then create graphs using perl + GD::Graph.

Excellent perl module.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ns-2.34 graphs ixma Ubuntu 1 05-30-2011 03:38 PM
Zenoss- add Performance graphs uks Linux - Server 0 02-03-2009 02:14 AM
LXer: Expedited Real-Time Task Graphs on Linux LXer Syndicated Linux News 0 08-29-2007 03:50 PM


All times are GMT -5. The time now is 10:32 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