Xymon Mailing List Archive search

Trends page - Premature end of scriptheaders: svcstatus.sh

3 messages in this thread

list Netz-haut - Stephan Seitz · Thu, 13 Oct 2011 16:30:36 +0200 ·
Hi,

"Premature end of script headers" usually indicates the absence of a content-type header. The error could be a result of your particular cgi configuration.
Anyway, you could verify this issue by simply adding

echo "Content-type: text/html"
echo ""

to the respective .sh script. Just get sure these lines are inserted before any other output is generated. If this solves your issue, you might want to
read the documentation of your cgi implementation, if (and how) this can be fixed at cgi level.

Cheers,
Stephan


Am Donnerstag, den 13.10.2011, 15:25 +0200 schrieb Patrik Nilsson: 
	No one else seeing this error? 
	  
	This is on a new 4.3.5 install on openSUSE 11.4 (x86_64) 2.6.37.6-0.7. 
	  
	Best, 
	  
	Patrik 
		-----Original Message-----
		From: "Patrik Nilsson" <user-33cb49fe483e@xymon.invalid>
		To: <xymon at xymon.com>
		Date: Mon, 10 Oct 2011 15:49:45 +0200
		Subject: [Xymon] Trends page - Premature end of script headers: svcstatus.sh
		  

		Hi, 
		  
		On a newly installed 4.3.5, if I go into a trends page and specify a Trends period och click on Update, I get a "Premature end of script headers: svcstatus.sh" Error 500. It does not seem to matter what time period I specify, it always result in the same error. 
		  
		Best regards, 
		  
		Patrik Nilsson
list Patrik Nilsson · Thu, 13 Oct 2011 16:57:51 +0200 ·
This is the standard xymon svcstatus.sh cgi script. It works fine on other pages, it only causes this error on the trends page, when choosing a "Trends period" different from the default.

Patrik
quoted from Netz-haut - Stephan Seitz

-----Original Message-----
From: "netz-haut - stephan seitz" <user-8e07784d84e8@xymon.invalid>
To: <user-33cb49fe483e@xymon.invalid>
Cc: <xymon at xymon.com>
Date: Thu, 13 Oct 2011 16:30:36 +0200
Subject: Re: [Xymon] Trends page - Premature end of scriptheaders: svcstatus.sh

Hi,

"Premature end of script headers" usually indicates the absence of a content-type header. The error could be a result of your particular cgi configuration.
Anyway, you could verify this issue by simply adding

echo "Content-type: text/html"
echo ""

to the respective .sh script. Just get sure these lines are inserted before any other output is generated. If this solves your issue, you might want to
read the documentation of your cgi implementation, if (and how) this can be fixed at cgi level.

Cheers,
Stephan


Am Donnerstag, den 13.10.2011, 15:25 +0200 schrieb Patrik Nilsson:
No one else seeing this error?

This is on a new 4.3.5 install on openSUSE 11.4 (x86_64) 2.6.37.6-0.7.

Best,

Patrik
-----Original Message-----
From: "Patrik Nilsson" <user-33cb49fe483e@xymon.invalid>
To: <xymon at xymon.com>
Date: Mon, 10 Oct 2011 15:49:45 +0200
Subject: [Xymon] Trends page - Premature end of script headers: svcstatus.sh


Hi,

On a newly installed 4.3.5, if I go into a trends page and specify a Trends period och click on Update, I get a "Premature end of script headers: svcstatus.sh" Error 500. It does not seem to matter what time period I specify, it always result in the same error.

Best regards,

Patrik Nilsson
list Henrik Størner · Thu, 13 Oct 2011 19:19:20 +0200 ·
quoted from Patrik Nilsson
"Premature end of script headers" usually indicates the absence of a
content-type header. The error could be a result of your particular cgi
configuration.
Actually, it usually means the CGI program crashed without creating any 
output.

Which means there is a bug in the svcstatus.cgi program.


Regards,
Henrik