<P>Have you tried using the sample config files? I had this type of error before and it was due to a typo in the config files(nagios doesn't seem to check very well), if you haven't had nagios up and running for the first time I'd start from scratch and use the sample files(ie, hosts.cgf-sample), without any changes to verify the cfgs are good. Just change the 
<P><STRONG><FONT color=#ff0000>use_authentication=1</FONT></STRONG>  and verify all your paths/permissions.
<P> <B><I>Larchenk <info@lars-schenk.de></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Dear group,<BR><BR>I've installed nagios 1.0b6 on a different linux box from the scratch<BR>and there is exaclty the same problem: nagios runs and allerts well -<BR>but all the CGIs (webinterface) result in 500 error status (Premature<BR>end of script headers).<BR><BR>I've tested for example "tac.cgi" from the shell:<BR><BR>#export REQUEST_METHOD=GET<BR>#./tac.cgi > tac.html<BR><BR>this results in<BR><BR>Cache-Control: no-store<BR>Pragma: no-cache<BR>Refresh: 90<BR>Last-Modified: Tue, 15 Oct 2002 19:40:54 GMT<BR>Expires: Thu, 01 Jan 1970 00:00:00 GMT<BR>Content-type: text/html<BR><BR>[...] normal HTML CODE [...]<BR><BR>So I can't see a problem here - there seem's to be not Debug Output like<BR>a trobleshoter from the FAQ says - but what is the problem?<BR><BR>I've used default values during install - so my cgi.cfg looks like this<BR>---<BR>main_config_file=/usr/local/nagios/etc/nagios.c
 fg<BR>physical_html_path=/usr/local/nagios/share<BR>url_html_path=/nagios<BR>show_context_help=0<BR>#use_authentication=1 # I've tried both<BR>use_authentication=0<BR>default_statusmap_layout=5<BR>default_statuswrl_layout=4<BR>ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$<BR>refresh_rate=90<BR>---<BR><BR><BR>I've read documentation and FAQ but can't fix the problem.<BR>I've googled and found an article<BR>http://groups.google.de/groups?q=Premature+end+of+script+Headers+Nagios&<BR>hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=aog0mq%2414qa%241%40FreeBSD.csie.NCTU.e<BR>du.tw&rnum=1<BR>that reports problems with mod_php 4.2.3. <BR><BR>I've mod_php 4.2.3 installed on one box - the other has an older version<BR>- but I've the same problem on both.<BR><BR>Dear group - you're my last chance - please help...<BR><BR>Regards<BR>Lars Schenk<BR><BR>ICQ: 64011254<BR>MSN: schenk@sharedirect.com<BR>AIM: larsschenkde<BR>YAHOO: larsschenk<BR>Phone: +49 (0)4502 8808561<BR>Fax: +4
 9 (0)721 151280929<BR><BR><BR>-----Ursprüngliche Nachricht-----<BR>Von: nagios-users-admin@lists.sourceforge.net<BR>[mailto:nagios-users-admin@lists.sourceforge.net] Im Auftrag von Lars<BR>Schenk<BR>Gesendet: Dienstag, 15. Oktober 2002 13:04<BR>An: nagios-users@lists.sourceforge.net<BR>Betreff: [Nagios-users] CGI - 500 - Premature end of script headers<BR><BR><BR>Hi group,<BR><BR>nagios is running and working but _all_ the CGIs from the web-interface<BR>gave 500.<BR>i.e.:<BR>Premature end of script headers: /usr/local/nagios/sbin/tac.cgi<BR>Premature end of script headers: /usr/local/nagios/sbin/status.cgi<BR>Premature end of script headers: /usr/local/nagios/sbin/statuswrl.cgi<BR>Premature end of script headers: /usr/local/nagios/sbin/outages.cgi<BR>...<BR><BR>FAQ @ http://www.nagios.org/faqs/viewfaq.php?faq_id=43<BR>says to "Recompile the CGIs without debugging enabled and this problem<BR>should disappear." <BR><BR>But I have not compiled with debug options - here's my co
 nfigure:<BR><BR>./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin<BR>--with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-grp=nagios<BR><BR>My httpd.conf is extended with<BR>--<BR>ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/<BR><DIRECTORY ? sbin nagios local usr><BR>AllowOverride AuthConfig<BR>Options ExecCGI<BR>Order allow,deny<BR>Allow from all<BR></DIRECTORY><BR><BR>Alias /nagios/ /usr/local/nagios/share/<BR><DIRECTORY ? nagios local usr share?><BR>Options None<BR>AllowOverride AuthConfig<BR>Order allow,deny<BR>Allow from all<BR></DIRECTORY><BR>---<BR><BR>nagios 1.0b6, SuSe 8.0<BR>Apache/1.3.26 <BR>SuSE Linux 8.0 (i386)<BR>Kernel 2.4.18-4GB / i686<BR><BR><BR>Any idea? Thanks in advance.<BR><BR>~<BR>Lars Schenk<BR><BR>mailto:info@lars-schenk.de<BR>ICQ: 64011254<BR>MSN: schenk@sharedirect.com<BR>AIM: larsschenkde<BR>YAHOO: larsschenk<BR><BR><BR><BR>-------------------------------------------------------<BR>This sf.net email is sponsored 
 by: viaVerio will pay you up to<BR>$1,000 for every account that you consolidate with us.<BR>http://ad.doubleclick.net/clk;4749864;7604308;v?http://www.viaverio.com/<BR>consolidator/osdn.cfm<BR><BR><BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users</BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://faith.yahoo.com">Faith Hill</a> - Exclusive Performances, Videos, & more<br>
<a href="http://faith.yahoo.com">faith.yahoo.com</a>