Xymon Mailing List Archive search

ascertaining the xymon server used

list Stef Coene
Mon, 17 Feb 2020 19:16:41 +0100
Message-Id: <user-c3927260df1a@xymon.invalid>

This works for me (all on 1 line):

echo "echo \$XYMSRV" | `ps -e -o args | grep xymonlaunch | awk '{print $1}' | grep -v grep | grep -v sed | grep -v server | sed 's/xymonlaunch/xymoncmd/g'`


Stef

On 2020-02-17 11:06, Ian Diddams via Xymon wrote:
scenario: multiple xymon clients across several environments and linux OS. An unrelated script (ir not xymon related) run as root user, however does need to ascertain the xymon server IP for various system checks.

Is there any "easy" or "simple" manner than can be scripted to ascertain this?? Without some really convuluted logic checking various configuration files that appear to (environment , OS etc dependent) to be in various places ie not always ~xymon/client/etc/xymonclient.cfg, which may then use an include on eg /etc/sysconfig/xymon-client...

thoughts?

ian