How To Install HotSaNIC
(03/25/04)
First, we will need to install or update ImageMagick
From root
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-Magick++-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-debuginfo-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-devel-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-perl-5.5.7-10.i386.rpm
rpm -Uvh *.rpm
rm -f ImageMagick-5.5.6*.rpm
Next, we will need to install RRDtool
wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.46.tar.gz
tar zxvf rrdtool-1.0.46.tar.gz
cd rrdtool-1.0.46
./configure
make
make install
make site-perl-install
cd ..
rm -fr rrdtool-1.0.46*
Now we will install and configure HotSaNIC
cd /usr/local
wget http://umn.dl.sourceforge.net/sourceforge/hotsanic/hotsanic-0.5.0-pre5.tgz
tar zxvf hotsanic-0.5.0-pre5.tgz
rm -f hotsanic-0.5.0-pre5.tgz
cd HotSaNIC
./setup.pl
You will be asked a number of questions during the install script.
Module found: APCUSV
Description:
Records some APC-UPS specific readouts:
- load percentage
- battery percentage
- time left when on battery
- output voltage
- system temperature
- battery voltage
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: APPS
Description:
Records the number of instances of the specified applications.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: BIND
Description:
Records statistics from the ISC BIND nameserver
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: DISKIO
Description:
Records I/O statistics for harddisks.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: DNET
Description:
Records stats for Distributed.net personal proxies
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: MAILQ
Description:
Records outbound mail status.
Currently supported mail-systems: postfix
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: NETSTAT
Description:
Records network socket-states.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: NETWORKS
Description:
Records IP- and protocol-based traffic stats.
ipchains/iptables required!
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: PART
Description:
Records partition usages.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: PING
Description:
Records min/avg/max ping-times for configured hosts
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: SENSORS
Description:
Records stats for configured hardware sensors
LM-Sensors required!
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: SHOUTCAST
Description:
Records remote stats for ShotCast servers
Note: The console-webbrowser "lynx" has to
be installed to use this module.
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: SYSTEM
Description:
Records system specific data:
- cpu usage
- irqs
- loadavg
- memory / swap
- # of processes
- uptime
- # of users
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: TRAFFIC
Description:
Records usage of ethernet devices (input / output)
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: WORMS
Description:
Records stats for worm-impacts on local webserver
Do you want to use this module? (Y/n) >
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 var/settings
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-1.0.46/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.
mkdir /var/www/html/HotSaNIC
cd /usr/local/HotSaNIC
./rrdgraph start
./makeindex.pl
./diagrams.pl
./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!
(03/25/04)
First, we will need to install or update ImageMagick
From root
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-Magick++-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-debuginfo-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-devel-5.5.7-10.i386.rpm
wget http://www.imagemagick.net/download/linux/redhat-9.x/i386/ImageMagick-perl-5.5.7-10.i386.rpm
rpm -Uvh *.rpm
rm -f ImageMagick-5.5.6*.rpm
Next, we will need to install RRDtool
wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.46.tar.gz
tar zxvf rrdtool-1.0.46.tar.gz
cd rrdtool-1.0.46
./configure
make
make install
make site-perl-install
cd ..
rm -fr rrdtool-1.0.46*
Now we will install and configure HotSaNIC
cd /usr/local
wget http://umn.dl.sourceforge.net/sourceforge/hotsanic/hotsanic-0.5.0-pre5.tgz
tar zxvf hotsanic-0.5.0-pre5.tgz
rm -f hotsanic-0.5.0-pre5.tgz
cd HotSaNIC
./setup.pl
You will be asked a number of questions during the install script.
Module found: APCUSV
Description:
Records some APC-UPS specific readouts:
- load percentage
- battery percentage
- time left when on battery
- output voltage
- system temperature
- battery voltage
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: APPS
Description:
Records the number of instances of the specified applications.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: BIND
Description:
Records statistics from the ISC BIND nameserver
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: DISKIO
Description:
Records I/O statistics for harddisks.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: DNET
Description:
Records stats for Distributed.net personal proxies
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: MAILQ
Description:
Records outbound mail status.
Currently supported mail-systems: postfix
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: NETSTAT
Description:
Records network socket-states.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: NETWORKS
Description:
Records IP- and protocol-based traffic stats.
ipchains/iptables required!
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: PART
Description:
Records partition usages.
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: PING
Description:
Records min/avg/max ping-times for configured hosts
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: SENSORS
Description:
Records stats for configured hardware sensors
LM-Sensors required!
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: SHOUTCAST
Description:
Records remote stats for ShotCast servers
Note: The console-webbrowser "lynx" has to
be installed to use this module.
Do you want to use this module? (Y/n) >
Choose 'n'
Module found: SYSTEM
Description:
Records system specific data:
- cpu usage
- irqs
- loadavg
- memory / swap
- # of processes
- uptime
- # of users
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: TRAFFIC
Description:
Records usage of ethernet devices (input / output)
Do you want to use this module? (Y/n) >
Choose 'y'
Do you want to show this module's graphs on the webpage? (Y/n) >
Choose 'y'
Module found: WORMS
Description:
Records stats for worm-impacts on local webserver
Do you want to use this module? (Y/n) >
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 var/settings
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-1.0.46/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.
mkdir /var/www/html/HotSaNIC
cd /usr/local/HotSaNIC
./rrdgraph start
./makeindex.pl
./diagrams.pl
./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!