Xymon Mailing List Archive search

internal server error after upgrade

2 messages in this thread

list D Forsyth · Thu, 09 Aug 2012 20:00:25 +0200 ·
Hi all
I'm running FreeBSD 7.4 and used 'portupgrade' to upgrade xymon-server  and client today, to 4.3.10

Now, I cannot see any graphs.
showgraph.cgi and showgraph.sh never get built and installed.

When I click on a graph link I get '500 Internal server error'.
Very annoying is that none of the log files is particularly helpful  about this!

Excerpt from http-error.log
[Thu Aug 09 19:55:02 2012] [error] [client 41.145.0.228] .: Can't open  @XYMONHOME@/etc/cgioptions.cfg: No such file or directory, referer:  http://iwr.ru.ac.za/xymon-cgi/svcstatus.sh?HOST=iwr.ru.ac.za&SERVICE=xymonnet
[Thu Aug 09 19:55:02 2012] [error] [client 41.145.0.228] Premature end  of script headers: showgraph.sh, referer:  http://iwr.ru.ac.za/xymon-cgi/svcstatus.sh?HOST=iwr.ru.ac.za&SERVICE=xymonnet

cgioptions.cfg exists and is readable by all in that folder!

I regressed rrdtool to 1.2 from 1.4 but it made no difference.  I did  this because the showgraph build is optional on the DORRD keyword, and  I thought maybe it wasn't being detected correctly, but there is no  change, showgraph.cgi is still not built.  make output includes the  symbol RRDTOOL12 instead of 'RRDTOOL'.

In my day of messing with this I managed to force showgraph.cgi to be  built and I then manually installed it, and that is when 'internal  server error' appeared instead of 'page not found'.

Any ideas?
list Henrik Størner · Thu, 09 Aug 2012 21:50:47 +0200 ·
quoted from D Forsyth
On 09-08-2012 20:00, user-f20e3f077131@xymon.invalid wrote:
I'm running FreeBSD 7.4 and used 'portupgrade' to upgrade xymon-server
and client today, to 4.3.10

Now, I cannot see any graphs.
showgraph.cgi and showgraph.sh never get built and installed.
I'm afraid you'll have to refer to the port-builders about that one.
quoted from D Forsyth
Excerpt from http-error.log
[Thu Aug 09 19:55:02 2012] [error] [client 41.145.0.228] .: Can't open
@XYMONHOME@/etc/cgioptions.cfg
The "@XYMONHOME@" string exists in the showgraph.sh.DIST file that ships 
with the Xymon source. When compiling, it is replaced with the name of 
the Xymon home-directory - "/usr/local/xymon" or wherever you choose to 
install Xymon.

So if the Xymon port of 4.3.10 results in a "showgraph.sh" with the 
"@XYMONHOME@" string intact, it's a bug in the FreeBSD port.

FreeBSD 7.4 is one of the platforms that has been tested with the 4.3.10 
release, and it works fine - also with graphs - when building it from 
source as described in the "install" document. Here's what I have:

freebsd74# uname -a
FreeBSD freebsd74.hswn.dk 7.4-RELEASE FreeBSD 7.4-RELEASE #0: Thu Feb 17 
03:51:56 UTC 2011 
user-e17cb67d6e8b@xymon.invalid:/usr/obj/usr/src/sys/GENERIC  i386

freebsd74# ls /home/xymon/cgi-bin/
appfeed-critical.sh     eventlog.sh             perfdata.sh
appfeed.sh              findhost.sh             report.sh
certreport.sh           ghostlist.sh            reportlog.sh
columndoc.sh            history.sh              showgraph.sh
confreport-critical.sh  historylog.sh           snapshot.sh
confreport.sh           hostgraphs.sh           svcstatus.sh
criticalview.sh         hostlist.sh             topchanges.sh
csvinfo.sh              nongreen.sh
datepage.sh             notifications.sh

freebsd74# cat /home/xymon/cgi-bin/showgraph.sh
#!/bin/sh

# This is the Xymon CGI script interface to showgraph.cgi
#
# Install this script in your webservers' cgi-bin directory

. /home/xymon/server/etc/cgioptions.cfg
  exec /home/xymon/server/bin/showgraph.cgi $CGI_SHOWGRAPH_OPTS


Regards,
Henrik