Premature end of script headers
Salman Usmani
ms_usmani at hotmail.com
Wed Jan 4 15:15:34 CET 2006
I have the following lines added to the httpd.conf:
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
So the ExecCGI is there but not executing. Here is the dir listing:
root at server151 [/usr/local/nagios/sbin]# ls -al
total 1984
drwxrwxr-x 2 nagios nagios 4096 Jan 4 02:53 ./
drwxr-xr-x 8 nagios nagios 4096 Jan 4 02:20 ../
-rwxrwxr-x 1 nagios nagios 139744 Jan 4 02:14 avail.cgi*
-rwxrwxr-x 1 nagios nagios 140848 Jan 4 02:14 cmd.cgi*
-rwxrwxr-x 1 nagios nagios 110624 Jan 4 02:14 config.cgi*
-rwxrwxr-x 1 nagios nagios 154040 Jan 4 02:14 extinfo.cgi*
-rwxrwxr-x 1 nagios nagios 122272 Jan 4 02:14 histogram.cgi*
-rwxrwxr-x 1 nagios nagios 103380 Jan 4 02:14 history.cgi*
-rw-r--r-- 1 nagios nagios 110 Jan 4 02:53 .htaccess
-rwxrwxr-x 1 nagios nagios 99252 Jan 4 02:14 notifications.cgi*
-rwxrwxr-x 1 nagios nagios 98088 Jan 4 02:14 outages.cgi*
-rwxrwxr-x 1 nagios nagios 98868 Jan 4 02:14 showlog.cgi*
-rwxrwxr-x 1 nagios nagios 143376 Jan 4 02:14 status.cgi*
-rwxrwxr-x 1 nagios nagios 124712 Jan 4 02:14 statusmap.cgi*
-rwxrwxr-x 1 nagios nagios 112224 Jan 4 02:14 statuswml.cgi*
-rwxrwxr-x 1 nagios nagios 107464 Jan 4 02:14 statuswrl.cgi*
-rwxrwxr-x 1 nagios nagios 116000 Jan 4 02:14 summary.cgi*
-rwxrwxr-x 1 nagios nagios 120304 Jan 4 02:14 tac.cgi*
-rwxrwxr-x 1 nagios nagios 122848 Jan 4 02:14 trends.cgi*
The browser loads a 500 error page and apache error log shows:
Premature end of script headers: /usr/local/nagios/sbin/status.cgi
Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi
Premature end of script headers: /usr/local/nagios/sbin/tac.cgi
Thanks for the help
Salman
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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