Xymon Mailing List Archive search

can't get confreport to work

4 messages in this thread

list Lars Ebeling · Sun, 23 Jan 2011 19:41:22 +0100 ·
Get:

Cannot contact the Xymon server

hobbitÉleopg9u:ü/cgi-bin$ sh -x confreport.sh
+ . /home/hobbit/server/etc/cgioptions.cfg
+ XYMONENV=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_CSVINFO_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
• CGI_COLUMNDOC_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --color=purpl
e --hffile=columndoc
+ CGI_FINDHOST_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
• CGI_SVC_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --no-svcid --histor
y=top
+ CGI_HIST_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --no-svcid
+ CGI_SVCHIST_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --no-svcid
+ CGI_SHOWGRAPH_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_HOSTGRAPHS_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_CONFREPORT_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
• CGI_DATEPAGE_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --url=/xymon/p
eriodic
+ CGI_REP_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_REPLOG_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_SNAPSHOT_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_EVENTLOG_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_CRITVIEW_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_CRITEDIT_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_ACKINFO_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_GHOSTS_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_ACK_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --no-pin
+ CGI_ENADIS_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_HOSTLIST_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_NOTIFYLOG_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_PERFDATA_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ CGI_TOPCHANGE_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg --top
+ CGI_USERADM_OPTS=--env=/home/hobbit/server/etc/xymonserver.cfg
+ exec 
/home/hobbit/server/bin/confreport.cgi --env=/home/hobbit/server/etc/xymo
nserver.cfg
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Cannot contact the Xymon server
</body></html>
-- 
Regards
Lars Ebeling
Rentier

http://leopg9.no-ip.org


"I am not young enough to know everything."
-- Oscar Wilde
list Henrik Størner · Mon, 24 Jan 2011 06:31:35 +0000 (UTC) ·
In <user-b6aa4a00297d@xymon.invalid> "Lars Ebeling" <user-1fecd3eafd52@xymon.invalid> writes:
Cannot contact the Xymon server
No, you get an "Invalid request" message. That's different.
hobbit�leopg9u:�/cgi-bin$ sh -x confreport.sh
confreport.sh is a CGI script. You cannot invoke it from
the commandline without setting the environment variables
that a CGI script would normally get from the webserver:
REQUEST_METHOD, QUERY_STRING, SCRIPT_NAME and feeding it
the post data.

BTW, did you run the upgrade script as per RELEASENOTES
and docs/upgrade-to-430.txt ?


Regards,
Henrik
list Lars Ebeling · Mon, 24 Jan 2011 08:16:43 +0100 ·
I did like I have done hundreds of times just configure make make install

/Lars

----- Original Message ----- 
From: "Henrik Størner" <user-ce4a2c883f75@xymon.invalid>
Newsgroups: lists.hobbit
To: <xymon at xymon.com>
Sent: Monday, January 24, 2011 7:31 AM
Subject: Re: [xymon] can't get confreport to work
quoted from Henrik Størner

In <user-b6aa4a00297d@xymon.invalid> "Lars Ebeling" 
<user-1fecd3eafd52@xymon.invalid> writes:
Cannot contact the Xymon server
No, you get an "Invalid request" message. That's different.
hobbitÉleopg9u:ü/cgi-bin$ sh -x confreport.sh
quoted from Henrik Størner
confreport.sh is a CGI script. You cannot invoke it from
the commandline without setting the environment variables
that a CGI script would normally get from the webserver:
REQUEST_METHOD, QUERY_STRING, SCRIPT_NAME and feeding it
the post data.

BTW, did you run the upgrade script as per RELEASENOTES
and docs/upgrade-to-430.txt ?


Regards,
Henrik

list Henrik Størner · Mon, 24 Jan 2011 09:32:36 +0000 (UTC) ·
quoted from Lars Ebeling
In <user-e20ab6fa3791@xymon.invalid> "Lars Ebeling" <user-1fecd3eafd52@xymon.invalid> writes:
I did like I have done hundreds of times just configure make make install
Not enough this time, I'm afraid. From docs/upgrade-to-430.txt:

1) Make sure you have a backup. It is not necessary to backup
   the data in the hist/, histlogs/, hostdata/ and rrd/
   directories (if you use the default directory layout, then
   that means the entire data/ directory need not be backed up).
2) Configure Xymon 4.3.0 using a directory layout that is
   identical to your previous version. Make sure you keep the
   directory names exactly as they were in the version you are
   currently running, even though that may include "hobbit" in
   the directory name.
3) Build Xymon 4.3.0 (run "make")
4) Stop Hobbit (the current version).
5) Using the "bbcmd" utility from your current version, run
   then "./build/upgrade430.sh" script. I.e. run a command
   like
       ~hobbit/server/bin/bbcmd ./build/upgrade430.sh
   This will perform almost all of the file renaming and
   configuration file updates that are needed when going
   to version 4.3. A few updates cannot be done automatically,
   you will be notified what else is needed after the script
   completes.
6) Install Xymon 4.3.0 (run "make install").


Regards,
Henrik