xymonreports.sh: Must have Xymon environment set.
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
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
In <OFD581B8DD.39799772-ONC1257814.002E4086-C1257814.002F0672 at kreis-steinfurt.de> "Hermann-Josef Beckers" <hj.beckers at kreis-steinfurt.de> 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
Henrik "Størner" <henrik at hswn.dk> 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.
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
"Hermann-Josef Beckers" <hj.beckers at kreis-steinfurt.de> schrieb am 10.01.2011 14:44:41:
...
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
participants (3)
-
henrik@hswn.dk
-
hj.beckers@kreis-steinfurt.de
-
stef.coene@docum.org