Quoted from StatsView README:
#####################################################
PREREQUISITES
————-
StatsView is written in Perl5, using the Perl Tk extension library. I recommend
that you use perl5.005_03 or later, and Tk800.014 or later, as StatsView has
been tested with these versions. You will also need the Tk::GBARR add-on
package for this version.
The graphing is done with gnuplot, and version 3.7 or later is required -
a copy can be found in the gnuplot_src subdirectory.
#####################################################
I already have Perl5 and gnuplot in my system, so I only need to install Perl Tk, Tk-GBARR and StatsView.
Install Perl Tk:
#apt-get install perl-tk
Grab Tk-GBARR from http://www.cpan.org/authors/id/SREZIC/. At this time of writing the latest version of Tk-GBARR is 2.08:
#fetch http://www.cpan.org/authors/id/SREZIC/Tk-GBARR-2.08.tar.gz
#tar xvfz Tk-GBARR-2.08.tar.gz
#cd Tk-GBARR-2.08
#perl Makefile.PL
#make
#make test
#make install
Grab StatsView from http://www.cpan.org/authors/id/ABURLISON/.
#fetch http://www.cpan.org/authors/id/ABURLISON/StatsView-1.4.tar.gz
#tar xvfz StatsView-1.4.tar.gz
#cd StatsView-1.4
#perl Makefile.PL
#make install
#./scripts/sv
Test StatsView using the example included:
#cd /path/StatsView-1.4/examples
#gzip -d sar.txt.gz
#../scripts/sv sar.txt
It worked wonderfully using the sar output sample.. but I couldn’t get it to display any graph using my collection of sar output, both in binary and text formats. At this point am still not sure why it kept on complaining that my output file is invalid.
They are valid AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa!!!
Now what am I supposed to tell my boss?
“Hi boss.. remember the Linux server performance data that I promised last week? I don’t have it.”
“How come?”
“I have it, but I don’t have it in a pwetty graph format like I pwomised.”
“Well it’s okay you can pass me the raw data.”
“It’s in binary.”
“What?”
“Uh.. you know there are 10 types of people in the world: Those who understand binary, and those who don’t…”
“You don’t have anything to present, do you?”
*GULP*
Source: http://jerkharris.com/books/books/PerlOrDBA/oracleperl-CHP-3-SECT-3.html