17 Feb
2020
17 Feb
'20
10:06 a.m.
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