hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : Hotsanic bandwidth and system graphing
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

Hotsanic bandwidth and system graphing

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-14-2004, 08:50 AM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40

Hotsanic bandwidth and system graphing


How To Install HotSaNIC

(03/25/04)

First, we will need to install or update ImageMagick
From root

wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....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/we...-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/source...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.

cd /usr/local/HotSaNIC
mkdir /var/www/html/HotSaNIC
./rrdgraph start
./makeindex.pl
./diagrams.pl
./convert.pl

You now have HotSaNIC installed

To view HotSaNIC go to http://yourIPaddress/HotSaNICs/

(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!

Reply With Quote


Sponsored Links
  #2  
Old 09-22-2004, 02:01 AM
one1coolone1 one1coolone1 is offline
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 42
Thanks a lot!

This is very nice, was so simple to install. Had to change a little bit to install on RH9

Reply With Quote
  #3  
Old 09-22-2004, 02:05 AM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40
thought it would be well liked thanks for trying it.

Reply With Quote
Sponsored Links
  #4  
Old 09-30-2004, 03:03 PM
one1coolone1 one1coolone1 is offline
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 42
hotsonic is awesome!

Reply With Quote
  #5  
Old 09-30-2004, 03:06 PM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40
hotsanic even

Reply With Quote
  #6  
Old 10-08-2004, 11:39 AM
terran11355@ terran11355@ is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 107
Re: Hotsanic bandwidth and system graphing

Quote:
Originally posted by webmazter
How To Install HotSaNIC

(03/25/04)

First, we will need to install or update ImageMagick
From root

wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....7-10.i386.rpm
wget http://www.imagemagick.net/download/....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/we...-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/source...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.

cd /usr/local/HotSaNIC
mkdir /var/www/html/HotSaNIC
./rrdgraph start
./makeindex.pl
./diagrams.pl
./convert.pl

You now have HotSaNIC installed

To view HotSaNIC go to http://yourIPaddress/HotSaNICs/

(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!


After I installed it and point to http://ipaddress/HotSaNICs/

Nothing happened? why?


Thanks

sean

Reply With Quote
  #7  
Old 10-08-2004, 02:29 PM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40

Reply With Quote
  #8  
Old 10-08-2004, 05:36 PM
terran11355@ terran11355@ is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 107
Quote:
Originally posted by webmazter
http://ipaddress/HotSaNIC/

Thanks

I found the problem from my hosting company.

If you choose the webdir /var/www/html/HotSaNIC

For me /var/www/html/HotSaNIC ( /usr/local/HotSaNIC ) does't equal to http://ipaddress/HotSaNIC

copied to /usr/local/apache/htdocs/HotSaNIC

works!


sean

Reply With Quote
  #9  
Old 10-08-2004, 05:49 PM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40
glad to hear it sean iv heard many good things from this thread.
says it really shows lots of stats and its more then they could of wanted its really a good program and nothing ever breaks once its running.
here is one of mine with just a few modules.
http://blackspot.piratehosting.net/HotSaNIC/

Reply With Quote
  #10  
Old 10-08-2004, 06:14 PM
terran11355@ terran11355@ is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 107
Quote:
Originally posted by webmazter
glad to hear it sean iv heard many good things from this thread.
says it really shows lots of stats and its more then they could of wanted its really a good program and nothing ever breaks once its running.
here is one of mine with just a few modules.
http://blackspot.piratehosting.net/HotSaNIC/

Hi webmazter,

it is good program,


BTW, what is the best way of uninstalling this script since i want to install again by myself?

just delete the whole folder? or something i need to do


Thanks

sean

Reply With Quote
  #11  
Old 10-08-2004, 06:34 PM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40
/usr/local/HotSaNIC/./rrdgraph stop
then remove the html and program file folder

Reply With Quote
  #12  
Old 10-22-2004, 02:36 AM
WFWH WFWH is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: McKinney, TX
Posts: 95
This is not showing up at all for me? anyhelp? I did all the install files and such, but when i try the page will not show up :-/

Reply With Quote
  #13  
Old 10-22-2004, 03:01 AM
webmazter webmazter is offline
Junior Guru Wannabe
 
Join Date: Aug 2004
Posts: 40
cd /var/www/html/HotSaNIC
ls
do you see files?

Reply With Quote
  #14  
Old 10-22-2004, 10:12 AM
WFWH WFWH is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: McKinney, TX
Posts: 95
sorry I was looking at the wrong ip :-p got it :-D

Reply With Quote
  #15  
Old 10-24-2004, 03:26 AM
WFWH WFWH is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: McKinney, TX
Posts: 95
ok maybe this is always like this, but seems to be eating alot of cpu resources.... Here is what i have under CPU/Memory/MySQL Usage in WHM


User %CPU %MEM Mysql Processes

root 9.32 6.16 2.0
Top Process %CPU 58.0 perl ./diagrams.pl
Top Process %CPU 36.7 gzip
Top Process %CPU 12.9 gzip

So looks like perl ./diagrams.pl is taking up 58%

So is this like this for everyone? how do i fix this?

Thanks

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host AYKsolutions Launches Unmetered Linux VPS Hosting at Chicago Data Center Web Hosting News 2013-01-07 16:23:08
CenturyLink Reduces Bandwidth Costs with Nirvanix Cloud Storage Web Hosting News 2012-07-25 17:22:15
Web Host Earthnet Launches Xpert.net Linux Web Hosting Services Web Hosting News 2012-03-23 16:09:07
Colocation Firm ColoUnlimited Offers Lease to Own Servers Web Hosting News 2011-11-28 21:50:19
Colocation Firm CoreXchange Offers Online Ordering via Enhanced Website Web Hosting News 2011-11-03 21:16:17


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?