Xymon Mailing List Archive search

Possible omission in the ~/client/etc/xymonclient.cfg file?

2 messages in this thread

list Martin Davies · Sat, 7 Sep 2013 14:20:04 +0100 ·
Hi.

 
From the documentation around the xymonclient.cfg config file it is supposed
to set up the environment for client-side scripts so that they can get hold
of environment variables such as XYMON and XYMSRV (BB & BBDISP in Hobbit
days)

 
I've just moved from Hobbit to Xymon and I am getting errors on the results
of my scripts because the environment variables I used in Hobbit are not
defined in Xymon.  

 
I think the reason is as follows:  

 
In xymonclient.cfg under Compatibility Settings, BB is defined here:

  BB="$XYMON"

 
Earlier on in the file XYMON is defined here:

  XYMON="$XYMONHOME/bin/xymon"          # The Xymon client "xymon" utility

 
And looking further back XYMONHOME is defined here:

  XYMONHOME="$XYMONCLIENTHOME"       # Directory for the Xymon client files

 
But XYMONCLIENTHOME is not defined anywhere I can find in xymonclient.cfg,
which means ultimately BB is not defined.  Therefore I get the following
from my Perl scripts:

 
  Use of uninitialized value $ENV{"BB"} in concatenation (.) or string at
./CurlFile.pl line 144.

  Use of uninitialized value in concatenation (.) or string at ./CurlFile.pl
line 144.

  sh: 8: status Internet.Perf green Sat Sep  7 14:15:16 BST 2013 -  OK

 
This string breaks the logic of the BB messaging and results in a RED alert
on my monitoring.

 
I know that XYMONCLIENTHOME is defined in xymonserver.cfg as

  XYMONCLIENTHOME="/home/xymon/client"

 
Am I right that I should define XYMONCLIENTHOME somewhere in xymonclient.cfg
and that it should be the same as XYMONCLIENTHOME="/home/xymon/client" or is
some other logic broken between xymonserver.cfg and xymonclient.cfg?

 
Cheers

Martin
list Henrik Størner · Thu, 12 Sep 2013 16:55:16 +0200 ·
quoted from Martin Davies
 
On 07.09.2013 15:20, Martin Davies wrote: 
And looking further
back XYMONHOME is defined here: 

XYMONHOME="$XYMONCLIENTHOME" #
Directory for the Xymon client files 
But XYMONCLIENTHOME is not
defined anywhere I can find in xymonclient.cfg, which means ultimately
BB is not defined. Therefore I get the following from my Perl
scripts:

XYMONCLIENTHOME should be set by the command that starts the
client - the ~xymon/client/runclient.sh script. 
This should only cause
problems if you run stuff "by hand" - i.e. without having xymonlaunch
starting it. 
Regards, 
Henrik