<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 23 June 2015 at 00:44, Greg Earle <span dir="ltr"><<a href="mailto:earle@isolar.dyndns.org" target="_blank">earle@isolar.dyndns.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":3nu" class="" style="overflow:hidden">But the rest of their systems (all but one) are CentOS 5.8-5.11 and with<br>
xymon-client-4.3.17-1.el5.centos RPMs installed, enabling CLIENTHOSTNAME<br>
in "/etc/sysconfig/xymon-client" apparently has no effect.  They all<br>
show up as Ghost Clients.</div></blockquote></div><br>Maybe try adding into /etc/default/xymon-client or /etc/default/xymon?  Some systems use a different location for this file.  I think it's defined in the xymonclient.cfg file, like so:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">include /etc/sysconfig/xymon-client<br></div><div class="gmail_extra"><br></div></div><div class="gmail_extra">Maybe check if the environment is actually being set as you expect:</div><div class="gmail_extra"><br></div><div class="gmail_extra">$ strings /proc/`pgrep -f sh.*vmstat`/environ|egrep "HOST|MACHINE"<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">This will search the environment for the vmstat command run by the Xymon client.</div><div class="gmail_extra"><br></div><div class="gmail_extra">From what I can tell, CLIENTHOSTNAME is used, if defined.  The RHEL (CentOS) init script looks for CLIENTHOSTNAME being defined, and if so, appends "--hostname=<whatever>" to the command-line of runclient.sh.  This script looks for --hostname and uses the value to defnine the env var MACHINEDOTS=<whatever> and also use it to define MACHINE (with commas instead of dots).  If this all works as it should, then when running "service start xymon-client" you should see "Xymon client for Linux started on <whatever>" and the PID file should be called clientlaunch.<whatever>.pid (where <whatever> is what you specify in CLIENTHOSTNAME).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers</div><div class="gmail_extra">Jeremy</div><div class="gmail_extra"><br></div></div>