ascertaining the xymon server used

Root, Paul T Paul.Root at CenturyLink.com
Mon Feb 17 16:11:12 CET 2020


So are you asking, “How do I find the IP address of the Xymon server without having to look for the xymonclient.cfg file (or any files it includes)?” With the reason that that file can be in multiple places due to differences in packaging of the Xymon client application.

The answer is to run your script from inside the xymoncmd executable.

From: Ian Diddams <didds3 at yahoo.co.uk>
Sent: Monday, February 17, 2020 4:06 AM
To: xymon at xymon.com
Subject: ascertaining the xymon server used

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
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200217/4d93dafd/attachment.htm>


More information about the Xymon mailing list