Xymon Mailing List Archive search

xymonreports.sh: Must have Xymon environment set.

5 messages in this thread

list Hermann-Josef Beckers · Mon, 10 Jan 2011 09:33:39 +0100 ·
As the subject says:If I try to include ~/server/etc/xymonserver.cfg
I get 2 errors:

..xymonserver.cfg: line 303 reached EOF while searching for '"'.
..xymonserver.cfg: line 304: Syntax error: unexpected EOF
(roughly translated back from german) and then a lot of 
"Cannot find value for variable  XYMON* error messages.

Any hints?
Hermann-Josef Beckers
list Stef Coene · Mon, 10 Jan 2011 09:57:59 +0100 ·
quoted from Hermann-Josef Beckers
On Monday 10 January 2011, Hermann-Josef Beckers wrote:
As the subject says:If I try to include ~/server/etc/xymonserver.cfg
I get 2 errors:

..xymonserver.cfg: line 303 reached EOF while searching for '"'.
..xymonserver.cfg: line 304: Syntax error: unexpected EOF
(roughly translated back from german) and then a lot of
"Cannot find value for variable  XYMON* error messages.
Like the error says, take a look at file xymonserver.cfg on line 303.  You are 
missing a ".


Stef

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Henrik Størner · Mon, 10 Jan 2011 09:36:23 +0000 (UTC) ·
quoted from Hermann-Josef Beckers
In <user-c2f9f3f40df1@xymon.invalid> "Hermann-Josef Beckers" <user-3e5362deca72@xymon.invalid> writes:
As the subject says:If I try to include ~/server/etc/xymonserver.cfg
I get 2 errors:
..xymonserver.cfg: line 303 reached EOF while searching for '"'.
..xymonserver.cfg: line 304: Syntax error: unexpected EOF
(roughly translated back from german) and then a lot of 
"Cannot find value for variable  XYMON* error messages.

I am unsure what you mean by "include xymonserver.cfg".
The best way to setup the Xymon environment is to run the 
command via the "xymoncmd" utility, like
   xymoncmd xymonreports.sh foo bar baz

However, I think your problem is a missing end-quote in the
BBSERVERSECURECGIURL definition in xymonserver.cfg. This was
an error in the beta-3 release.


Regards,
Henrik
list Hermann-Josef Beckers · Mon, 10 Jan 2011 14:44:41 +0100 ·
Henrik "Størner" <user-ce4a2c883f75@xymon.invalid> schrieb am 10.01.2011 10:36:23:

...

I am unsure what you mean by "include xymonserver.cfg".
". /home/xymon/server/etc/xymonserver.cfg" in xymonreports.sh.
quoted from Henrik Størner
The best way to setup the Xymon environment is to run the 
command via the "xymoncmd" utility, like
   xymoncmd xymonreports.sh foo bar baz

However, I think your problem is a missing end-quote in the
BBSERVERSECURECGIURL definition in xymonserver.cfg. This was
an error in the beta-3 release.
You are right. Using your commandline example the reports are
generated under www/periodic. I can load the index.hmtl using
FFs load file function. But the generated html files contain
hrefs like "/xymon/periodic/weekly/...". If I click on them I 
get "file not found" errors. Do I have to set a link in the
xymon apache configfile or define a variable? Wouldn't it make
sense to add a menu item "periodic reports" under the "Reports" 
section?

Yours
hjb
list Hermann-Josef Beckers · Mon, 10 Jan 2011 15:10:33 +0100 ·
"Hermann-Josef Beckers" <user-3e5362deca72@xymon.invalid> schrieb am 10.01.2011 14:44:41:
quoted from Hermann-Josef Beckers

...
You are right. Using your commandline example the reports are generated under www/periodic. I can load the index.hmtl using FFs load file function. But the generated html files contain hrefs like "/xymon/periodic/weekly/...". If I click on them I get "file not found" errors. Do I have to set a link in the xymon apache configfile or define a variable? Wouldn't it make sense to add a menu item "periodic reports" under the "Reports" section? 
Please ignore the last part. I found that I can already use /xymon/periodic/...

Yours hjb