# need file
http://www.fastmirrors.org/rrdtool/rrdtool-1.0.x/rrdtool-1.0.42.tar.gz
http://nchc.dl.sourceforge.net/sourceforge/hotsanic/HotSaNIC-0.4.0.tgz
This howto is old, it may not work. There are new versions of HotSaNIC and rrdtool available. You can use the newer versions and use this how as a guide, this howto is not 100% correct anymore.
From root
First, we will need to install RRDtool
wget http://www.fastmirrors.org/rrdtool/rrdtool-1.0.x/rrdtool-1.0.42.tar.gz
tar zxf rrdtool-1.0.42.tar.gz
cd rrdtool-1.0.42
./configure --prefix=/usr/local/rrdtool
make
make install
make site-perl-install
cd ..
rm -fr rrdtool-1.0.42*
Now we will install and configure HotSaNIC
cd /usr/local
wget http://nchc.dl.sourceforge.net/sourceforge/hotsanic/HotSaNIC-0.4.0.tgz
tar zxf HotSaNIC-0.4.0.tgz
rm -f HotSaNIC-0.4.0.tgz
cd HotSaNIC
./setup.pl
You will be asked a number of questions during the install script.
Module found: SENSORS Do you want to use this module?
Choose 'n'
Module found: DNET Do you want to use this module?
Choose 'n'
Module found: PART Do you want to use this module?
Choose 'y'
Do you want to show this module's graphs on the webpage?
Choose 'y'
Module found: PING Do you want to use this module?
Choose 'n'
Module found: TRAFFIC Do you want to use this module?
Choose 'y'
Do you want to show this module's graphs on the webpage?
Choose 'y'
Found: eth0 - (y)es or (n)o
Choose 'y' (If you are prompted for any other interfaces starting with 'eth0' choose 'n')
Found: lo - (y)es or (n)o
Choose 'n'
Module found: NETWORKS Do you want to use this module?
Choose 'n'
Module found: DISKIO Do you want to use this module?
Choose 'n'
Module found: SYSTEM Do you want to use this module?
Choose 'y'
Do you want this module's graphs on the webpage?
Choose 'y'
Module found: WORMS Do you want to use this module?
Choose 'n'
You are now back at the command prompt. (If it asks you more questions, just accept the default answers.. we are using these settings below....)
Let's configure HotSaNIC by entering the following.
cd settings.all
pico main
press [ctrl -w] then type 'binpath' then press [enter]. Find and change this line.
BINPATH="not configured"
change to
BINPATH="/usr/local/rrdtool/bin"
press [ctrl -w] again then type 'webdir' then press [enter]. Find and change this line.
WEBDIR="not configured"
change to
WEBDIR="/var/www/html/HotSaNIC"
press [ctrl -w] again then type 'ctime' then press [enter]. Find and change this line.
CTIME="24"
change to
CTIME="4"
press [ctrl -w] again then type 'convertpath' then press [enter]. Find and change this line.
CONVERTPATH="not configured"
change to
CONVERTPATH="/usr/bin/convert"
Finally, to save and exit press [ctrl -x] Y then [enter]. At the prompt type.
pico data-traffic
Find and change this line:
SWAPIO="no"
change to
SWAPIO="yes"
Again, to save and exit press [ctrl -x] Y then [enter]. At the prompt type.
cd ..
mkdir /var/www/html/HotSaNIC
./rrdgraph start
./makeindex.pl
./diagrams
./convert.pl
You now have HotSaNIC installed
To view HotSaNIC go to http://yourIPaddress/HotSaNIC/
(it will take a few mins for the graphs to generate data.
Now, Lets set HotSaNIC up so it will start when you reboot your server.
pico /etc/rc.local
Add this line:
/usr/local/HotSaNIC/./rrdgraph start
Then [ctrl -x] Y then [enter] to save
All Done!