Apache sees Nagio, I authenticate fine as nagiosadmin, and I can get at the top level nagios page (in my case, http://192.168.33.10/nagios/), which displays fine.
The problem is that *all* of the subpages served by executables in /usr/lib/nagios/cgi-bi fail to work at all; apache treats them as binary downloads, and downloads them to disk. They are not executed, and the apache logs indicate that I'm getting successful downloads. Which is not what I need, obviously. There are no errors.
I can't see why the CGI are failing to execute as CGI. I'm using the unmodified /etc/httpd/conf.d/nagios.conf file as installed by the RPM, and apache has not been modified in any way. The *.cgi files are all executable. SELinux is disabled.
Just to make sure there's nothing stupid in the stock nagios.conf file, here's what's in it:
Code: Select all
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi-bin/"
<Directory "/usr/lib/nagios/cgi-bin/">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/passwd
Require valid-user
</Directory>
Alias /nagios "/usr/share/nagios/html"
<Directory "/usr/share/nagios/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/passwd
Require valid-user
</Directory>
Anybody see this? I've used plenty of web apps that use CGIs. I've never seen one fail so badly right out of the box when installed via an RPM.