[Xymon] ascertaining the xymon server used
Stef Coene
stef.coene at docum.org
Mon Feb 17 19:16:41 CET 2020
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
More information about the Xymon
mailing list