Help in nagiosgraph


#1

I have running Nagios 2.10. I decided to add nagiosgraph to have graph result of my nagios. However, I can’t make it work. Here is the things that I do:

tar xvzf nagiosgraph-0.9.0.tgz
cd nagiosgraph-0.9.0
mkdir /usr/local/nagios/nagiosgraph
cp nagiosgraph.conf map insert.pl show.cgi /usr/local/nagios/nagiosgraph/
vi /usr/local/nagios/nagiosgraph/nagiosgraph.conf (Edit logfile and perflog)
chown nagios:nagios /usr/local/nagios/var/nagiosgraph.log
mkdir /usr/local/nagios/nagiosgraph/rrd
chown nagios:nagios /usr/local/nagios/nagiosgraph/rrd
chown -R nagios:nagios /usr/local/nagios/nagiosgraph
touch /usr/local/nagios/var/perfdata.log
vi insert.pl and show.cgi (Change nagiosgraph.conf file)
chown nagios:nagios /usr/local/nagios/var/perfdata.log
chmod 664 /usr/local/nagios/var/nagiosgraph.log
chmod 664 /usr/local/nagios/var/perfdata.log
chmod 775 /usr/local/nagios/nagiosgraph/rrd/
chmod 666 /usr/local/nagios/var/nagiosgraph.log

THen I edit checkocmmands.to put process-service-perfdata

Here is my added config in my http.conf

ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/
<Directory “/usr/local/nagios/nagiosgraph”>
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all

Then I restart nagios. Then when I click the icon for nagiosgraph, it says:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Could this be only a http error? I dont see any error


#2

Hi!

I’m not sure, but I didn’t need to add
<Directory “/usr/local/nagios/nagiosgraph”>
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all

in my httpd.log; try to comment it, just to see :slight_smile: