this program is released under the public GNU licence
and is free for use but donations are welcome.
See http://software.foxlink.org/hostgrapher2/ 
for more info
 
Joao Carvalho <Joao.Carvalho@foxlink.org>

Instalation instructions for Host Grapher 2 Server

execute
cp hgrapher-2.0.tar.gz /home
cd /home
tar xvfz hgrapher-2.0.tar.gz
cd grapher2

well if you read this you probably aready done this .

but still you have to run

chown nobody data

and 
./setup

to give the default password for the clients

change to "lib"
correct the link to rrdtool if wrong

ln -fs /usr/local/rrdtool-xxx rrdtool

please link to the installation dir not the rrdtool program
if you do an 
# ls lib/rrdtool
you will get something like this 
bin  contrib  doc  examples  html  include  lib  man



add the following line to the /etc/services file
grapher2              8889/tcp

now there are 2 possibilities you might be running xinetd or inetd 
try finding out with the comand "ps ax| grep inet"

### 1- inetd

add the following line to the /etc/inetd.conf file
grapher2            stream  tcp     nowait  nobody  /usr/sbin/tcpd  /home/grapher2/sbin/grapher2d

check if /usr/sbin/tcpd exists if not just add the next line instead 
grapher2            stream  tcp     nowait  nobody  /home/grapher2/sbin/grapher2d

restart inetd 

###2 xinetd
create a file named "grapher2" in the /etc/xinetd.d/ directory containing 
_________cut here _______________
# statistics gatherer
service grapher2
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = nobody
        server          = /home/grapher2/sbin/grapher2d
        log_on_failure  += USERID
        disable         = no
}
_________cut here _______________


restart xinetd

### apache

now lets configure apache
find your httpd.conf and add the line

ScriptAlias /grapher2  /home/grapher2/cgi

restart your apache and try

http://<server>/grapher2/index

you should get a page.

IMPORTANT
run the "debug" prog in the bin directory to check for errors 




change the default password in "grapher2d"

note you dont need to give this password to your clients
you can now pregister a client with its own password

just use the register program in the bin dir

register <hostname> <password>


NOTE
it is possible to change the path form /home/grapher2 to another one but you
will have to edit all the files in the sbin bin and cgi directory

If all is working you are now ready to install a client

