CGIs treated as text, not executed?
Neal Rauhauser
neal at lists.rauhauser.net
Thu Feb 3 08:25:57 CET 2005
I haven't touched the graphical interface for Nagios in maybe five
years but I don't recall it being as much work as its made for me the
last few days. I've configured the stuff in /usr/local/etc/apache and
this seems to be right - accessing http://machine/nagios/ produces a
nagios page, but when I click on one of the reports it shows me strings
from inside the CGI binary instead of executing it. I've checked
ownership and permissions on the binaries and they look right -
executeable, owned by www, and they behave like a normal CGI when
invoked from the command line.
The host OS is FreeBSD 4.10 and here is what I believe to the the
relevant config snippets. I know this has to be some stupid one line
config thing but I'm just not seeing ... any ideas?
Alias /nagios/ /usr/local/share/nagios/
<Directory "/usr/local/share/nagios">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ScriptAlias /nagios/cgi-bin/ /usr/local/share/nagios/cgi-bin/
<Directory "/usr/local/share/nagios/cgi-bin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
ap400# pwd
/usr/local/share/nagios/cgi-bin
ap400# ls -l
total 1942
-rwxrwxr-x 1 www www 147976 Feb 1 19:37 avail.cgi
-rwxrwxr-x 1 www www 147160 Feb 1 19:37 cmd.cgi
-rwxrwxr-x 1 www www 114280 Feb 1 19:37 config.cgi
-rwxrwxr-x 1 www www 160848 Feb 1 19:37 extinfo.cgi
-rwxrwxr-x 1 www www 125064 Feb 1 19:37 histogram.cgi
-rwxrwxr-x 1 www www 104452 Feb 1 19:37 history.cgi
-rwxrwxr-x 1 www www 101444 Feb 1 19:37 notifications.cgi
-rwxrwxr-x 1 www www 98528 Feb 1 19:37 outages.cgi
-rwxrwxr-x 1 www www 99940 Feb 1 19:37 showlog.cgi
-rwxrwxr-x 1 www www 146616 Feb 1 19:37 status.cgi
-rwxrwxr-x 1 www www 127488 Feb 1 19:37 statusmap.cgi
-rwxrwxr-x 1 www www 115304 Feb 1 19:37 statuswml.cgi
-rwxrwxr-x 1 www www 109312 Feb 1 19:37 statuswrl.cgi
-rwxrwxr-x 1 www www 119944 Feb 1 19:37 summary.cgi
-rwxrwxr-x 1 www www 123992 Feb 1 19:37 tac.cgi
-rwxrwxr-x 1 www www 127016 Feb 1 19:37 trends.cgi
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list