Installing NagisoGrapher
========================

REQUIREMENTS
------------

- Nagios with a working webinterface 
- Tobi Oetiker's rrdtool (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/)
- perl with following modules: CGI, GD, RRDs,XML::SIMPLE, XML::Parser 

INSTALLING
----------

1.  untar the package where ever you want

2.  copy fifo_write.pl, collect2.pl and NagiosGrapher.pm to your Nagios 
    installation (eg. /usr/share/nagios/contrib)

3.  copy *.cgi to your Nagios CGI folder 
    eg. /usr/lib/cgi-bin/nagios

4.  link NagiosGrapher.pm to your CGI folder 
    eg. ln -s /usr/share/nagios/contrib/NagiosGrapher.pm /usr/lib/cgi-bin/nagios

5.  copy ngraph.cfg to your Nagios ETC folder 
    eg. /etc/nagios

6.  copy graph.png to your Nagios Logo Graphics folder 
    eg. /usr/share/nagios/htdocs/images/logos/
    
7.  copy the NagiosGrapher start/stop-script to your rc?.d folders

8.  Alter the config block in ngraph.cfg

9.  If path of ngraph.cfg isn't /etc/nagios/ngraph.cfg alter the path of 
    ngraph.cfg inside NagiosGrapher.pm 

11. create /var/lib/nagios folder and allow the user under which nagios is 
    runing writeable access
   
12. enable inside nagios.cfg:
    process_performance_data=1
    service_perfdata_command=process-service-perfdata

13. activate the process-service-perfdata command:
    define command {
      command_name   process-service-perfdata
      command_line    /usr/lib/nagios/eventhandlers/fifo_write.pl /var/lib/nagios/ngraph.pipe '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
    }
      

Now the installations is finished. To configure NagiosGrapher read CONFIG
