Hi<br>
<br>
Before running from the command line you need to set the REQUEST_METHOD<br>
environment variable variables:<br>
<br>
$ export REQUEST_METHOD=GET<br>
<br>
Sounds like somethings wrong either the cgi-script or it's environment. Check you file-permissions <br>
first thing. Which version of nagios are  you using?<br>
<br>
Regards,<br>
Christian Theil Have<br>
<br>
<br><div><span class="gmail_quote">On 9/17/05, <b class="gmail_sendername">Jelle De Pot</b> <<a href="mailto:jelledp@yahoo.com">jelledp@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>When I visit a nagios .cgi file on my website I get<br>following error:<br><br>[Sun Sep 18 08:26:59 2005] [error] [client<br><a href="http://217.22.180.65">217.22.180.65</a>] Premature end of scrip<br>t headers: 
status.cgi, referer:<br><a href="http://jelle.maltacentral.com/nagios/side.html">http://jelle.maltacentral.com/nagios/side.html</a><br><br>the nagios -v etc/nagios.cfg gives me no errors:<br>Total Warnings: 0<br>Total Errors:   0
<br>Things look okay - No serious problems were detected<br>during the pre-flight check<br><br>So I start nagios: nagios etc/nagios.cfg and it runs<br>fine.<br><br>When I run ./status.cfg at the bash I get this:<br>[root@appserver3
 sbin]# ./status.cgi<br>getcgivars(): Unsupported REQUEST_METHOD -> ''<br><br>I'm guessing you're trying to execute the CGI from a<br>command line.<br><br>So the permissions are right but maybe that 'error'<br>can give someone a clue.
<br><br>I am really stuck on what that premature end of script<br>error might be. Any advise would be greatly<br>appriciated.<br><br>Regards<br>Jelle De Pot<br><br><br><br>__________________________________<br>Yahoo! Mail - PC Magazine Editors' Choice 2005
<br><a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br><br><br>-------------------------------------------------------<br>SF.Net email is sponsored by:<br>Tame your development challenges with Apache's Geronimo App Server.
<br>Download it for free - -and be entered to win a 42" plasma tv or your very<br>own Sony(tm)PSP.  Click here to play: <a href="http://sourceforge.net/geronimo.php">http://sourceforge.net/geronimo.php</a><br>_______________________________________________
<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>