Xymon Mailing List Archive search

Premature end of script headers: showgraph.sh

4 messages in this thread

list Timothy Myers · Thu, 7 Jun 2012 15:47:27 -0600 ·
I have a new install of xymon-4.3.7 -  I get "Premature end of script
headers" on showgraph and I don't get any graphs -- I see that xymond-rrd
is running.    I have not graphs and only see a red X followed by
"xymongraph" and a type like tcp disk tcp:http or what ever type of graph I
would be expecting.  selecting that only takes me to:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, root at localhost and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log


=====

and error log has the Premature end of script headers message:


[Thu Jun 07 15:39:45 2012] [error] [client x.x.x.x] Premature end of script
headers: showgraph.sh, referer:
https://myname1:46248/xxymon-cgi/svcstatus.sh?HOST=myname1&SERVICE=trends

[Thu Jun 07 15:40:06 2012] [error] [client x.x.x.x] Premature end of script
headers: showgraph.sh, referer:
https://myname1:46248/xymon-cgi/svcstatus.sh?HOST=myname1&SERVICE=disk

[Thu Jun 07 15:41:06 2012] [error] [client x.x.x.x] Premature end of script
headers: showgraph.sh, referer:
https://myname1:46248/xymon-cgi/svcstatus.sh?HOST=myname1&SERVICE=http
=======

I have tried different servers different charts  but no graphs for any
servers
list Tim McCloskey · Sat, 9 Jun 2012 07:21:05 -0700 ·
That is an Apache error.  Can you check the file/dir perms and ownership of your cgi files (showgraph.sh, svcstatus,etc) and also check to see they are marked as executeable?  Also check to see what running the command from the command line tells you (maybe some env var is wrong or your apache config is foobar'd).
quoted from Timothy Myers

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Timothy Myers [user-ef5937641225@xymon.invalid]
Sent: Thursday, June 07, 2012 2:47 PM
To: xymon at xymon.com
Subject: [Xymon] Premature end of script headers: showgraph.sh

I have a new install of xymon-4.3.7 -  I get "Premature end of script headers" on showgraph and I don't get any graphs -- I see that xymond-rrd is running.    I have not graphs and only see a red X followed by "xymongraph" and a type like tcp disk tcp:http or what ever type of graph I would be expecting.  selecting that only takes me to:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log


=====

and error log has the Premature end of script headers message:


[Thu Jun 07 15:39:45 2012] [error] [client x.x.x.x] Premature end of script headers: showgraph.sh, referer: https://myname1:46248/xxymon-cgi/svcstatus.sh?HOST=myname1&SERVICE=trends

[Thu Jun 07 15:40:06 2012] [error] [client x.x.x.x] Premature end of script headers: showgraph.sh, referer: https://myname1:46248/xymon-cgi/svcstatus.sh?HOST=myname1&SERVICE=disk

[Thu Jun 07 15:41:06 2012] [error] [client x.x.x.x] Premature end of script headers: showgraph.sh, referer: https://myname1:46248/xymon-cgi/svcstatus.sh?HOST=myname1&SERVICE=http

=======

I have tried different servers different charts  but no graphs for any servers
list Jeremy Laidman · Fri, 15 Jun 2012 15:14:17 +1000 ·
quoted from Timothy Myers
On Fri, Jun 8, 2012 at 7:47 AM, Timothy Myers <user-ef5937641225@xymon.invalid>wrote:
I have a new install of xymon-4.3.7 -  I get "Premature end of script
headers" on showgraph and I don't get any graphs -- I see that xymond-rrd
is running.    I have not

Try running the "showgraph.sh" script directly, possibly as the user that
Apache runs as.  You should see the first line as "Content-type: text/html"
followed by a blank line.  If the web server doesn't get these two lines
from a CGI script, it gives the "Internal Server Error" message.

J
list Japheth Cleaver · Thu, 14 Jun 2012 22:50:19 -0700 (PDT) ·
quoted from Jeremy Laidman
On Fri, Jun 8, 2012 at 7:47 AM, Timothy Myers
<user-ef5937641225@xymon.invalid>wrote:
I have a new install of xymon-4.3.7 -  I get "Premature end of script
headers" on showgraph and I don't get any graphs -- I see that
xymond-rrd
is running.    I have not

Try running the "showgraph.sh" script directly, possibly as the user that
Apache runs as.  You should see the first line as "Content-type:
text/html"
followed by a blank line.  If the web server doesn't get these two lines
from a CGI script, it gives the "Internal Server Error" message.

J

Also, try touching a file named "cgierror.err" inside $XYMONSERVERLOGS for
your installation and making it apache-writeable (or 777). It's possible
there's another error going on that's not going out to the httpd error
logs.


-jc