Hi everybody?
I CONNECTED WITHOUT PROBLEM ON THE NAGIOS WEBPAGE, I CAN’T ACCESS ALL OTHERS MENUS ON THIS PAGE.
AND I GOT THE FOLLOWING MESSAGE
P.S: i’ve installed nagios 2.0 ON ReDHat ENTERPRISE LINUX 4, with currently one host monitored
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.52 (Red Hat) Server at 115.122.141.24 Port 80
to see if Nagios returns any warnings or errors on the pre-flight check? I use those paths assuming you installed Nagios from source and kept the default paths.
Any more? so it worked? if it WORKED but now it doesn’t i’d check what has been updated recently n the server.
If it never worked you probably misconfigured the webinterface… particulary (as SonOfThunder pointed out) the cgi-bin subdirectory.
Hi,
Find below the ScriptAlias confered to nagios:
…]
[blockquote]ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”
<Directory “/var/www/cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all
ScriptAlias /nagios/cgi-bin “/usr/local/nagios/sbin”
<Directory “/usr/local/nagios/sbin”>
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
Alias /nagios “/usr/local/nagios/share”
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
Okay, looks like the problem is with your ScriptAlias. Nagios 2.x is kinda particular about this. You have to make sure you have the forward slashes at the end of your path to the sbin directory. Therefore,
wifipap
I was having the same issue you were having. I run RH Ent 4 and could not access any of the cgi pages. I found that in var/log/httpd/error_log it was a permissions issue. I also found that SELINUX was the cause. If you disable it in /etc/selinux/config . The CGI scripts will work.
Here is link l found that helped me and may help you.
Yes, and if that’s the case, you’ll see an error message that mentions a premature end of script headers somewhere in your logs, or something of the sort. It appears to be a RH-specific issue, and depending on the version, you can solve it in a number of ways.
Hi gurus,
Finally, i 've founded out the solution!! (it was time)
After following your instructions, i faced the same problem i.e, “forbidden access to nagios”.
So i looked up my httpd.conf file, i saw that thereis no index directive correctly mentionned:
…]
DirectoryIndex: sets the file that Apache will serve if a directory
is requested.
DirectoryIndex index.htm index.php** index.html** <=# it was it!!!
...]
After that , it's works fine