Upgrade nagios, CGIs dead

Anthony Lieuallen anthony at caretechgroup.com
Thu Oct 14 19:34:11 CEST 2004


I recently upgraded from 1.1 to 1.2 of nagios.  Now, I get:
[Thu Oct 14 13:25:29 2004] [error] [client 66.199.132.173] Premature end 
of script headers: /usr/local/nagios/sbin/status.cgi

CGIs execute from command line, even when running as the same user as 
the web server.

Details:
t-bone at dinix nagios $ /usr/local/nagios/bin/nagios --version

Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 02-02-2004
License: GPL

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

t-bone at dinix nagios $ cat /usr/local/apache/conf/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>
.
.
.


t-bone at dinix nagios $ ls -lad sbin
drwxrwxr-x    2 nagios   nagios       4096 Oct 14 13:22 sbin/
t-bone at dinix nagios $ ls -la sbin
total 2024
drwxrwxr-x    2 nagios   nagios       4096 Oct 14 13:22 ./
drwxr-xr-x    9 root     root         4096 Oct 14 13:08 ../
-rwxrwxr-x    1 nagios   nagios     143824 Oct 14 13:22 avail.cgi*
-rwxrwxr-x    1 nagios   nagios     144924 Oct 14 13:22 cmd.cgi*
-rwxrwxr-x    1 nagios   nagios     113872 Oct 14 13:22 config.cgi*
-rwxrwxr-x    1 nagios   nagios     160292 Oct 14 13:22 extinfo.cgi*
-rwxrwxr-x    1 nagios   nagios     124208 Oct 14 13:22 histogram.cgi*
-rwxrwxr-x    1 nagios   nagios     105764 Oct 14 13:22 history.cgi*
-rwxrwxr-x    1 nagios   nagios     101604 Oct 14 13:22 notifications.cgi*
-rwxrwxr-x    1 nagios   nagios      98392 Oct 14 13:22 outages.cgi*
-rwxrwxr-x    1 nagios   nagios     100292 Oct 14 13:22 showlog.cgi*
-rwxrwxr-x    1 nagios   nagios     145148 Oct 14 13:22 status.cgi*
-rwxrwxr-x    1 nagios   nagios     127288 Oct 14 13:22 statusmap.cgi*
-rwxrwxr-x    1 nagios   nagios     114864 Oct 14 13:22 statuswml.cgi*
-rwxrwxr-x    1 nagios   nagios     108792 Oct 14 13:22 statuswrl.cgi*
-rwxrwxr-x    1 nagios   nagios     119184 Oct 14 13:22 summary.cgi*
-rwxrwxr-x    1 nagios   nagios     123100 Oct 14 13:22 tac.cgi*
-rwxrwxr-x    1 nagios   nagios     126448 Oct 14 13:22 trends.cgi*

t-bone at dinix sbin $ REQUEST_METHOD=GET ./status.cgi
Cache-Control: no-store
Pragma: no-cache
Refresh: 60
Last-Modified: Thu, 14 Oct 2004 17:33:35 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-type: text/html

<html>
<head>
<title>
Current Service Status
</title>
</head>
<body CLASS='status'>

<!-- Produced by Nagios (http://www.nagios.org).  Copyright (c) 
1999-2002 Ethan Galstad. -->


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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