<div dir="ltr"><div><div><div>I run all my systems on Centos 7 (now) and, IIRC, I had to run<br><br></div>hostnamectl set-hostname <fqdn><br><br></div>Something to try.<br><br></div>=G=<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 1:30 PM, John Thurston <span dir="ltr"><<a href="mailto:john.thurston@alaska.gov" target="_blank">john.thurston@alaska.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 9/18/2017 8:30 AM, Jeremy Ruffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm on RHEL 6 which is probably the same.<br>
<br>
In /etc/sysconfig/xymon-client there is a CLIENTHOSTNAME= line.<br>
</blockquote>
<br></span>
Are you, perhaps, running the terabitha package of Xymon? I have no such file here. As mentioned earlier, I've compiled from source.<br>
<br>
For my machine, I have borrowed the terabithia systemd service-file. It fires off xymonlaunch with:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ExecStart=/opt/xymon/server/bi<wbr>n/xymoncmd /opt/xymon/server/bin/xymonlau<wbr>nch --no-daemon $XYMONLAUNCHOPTS<br>
</blockquote>
<br>
My tasks.cfg has the client to be run with:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  ENVFILE /opt/xymon/client/etc/xymoncli<wbr>ent.cfg<br>
  CMD /opt/xymon/client/bin/xymoncli<wbr>ent.sh<br>
  LOGFILE $XYMONSERVERLOGS/xymonclient.l<wbr>og<br>
  INTERVAL 5m<br>
</blockquote>
<br>
The xymonclient.sh contains the pertinent line:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
echo "client $MACHINE.$SERVEROSTYPE $CONFIGCLASS"  >>  $MSGTMPFILE<br>
</blockquote>
<br>
When I change $MACHINE to $MACHINEDOTS, the client behaves as expected, and sends messages under its fully qualified domain name.<br>
<br>
It looks to me like the behavior of uname on my host isn't relevant. The xymonclient.sh is specifically writing the short name rather than the long.<br>
<br>
Now what isn't clear to me, is where $MACHINE is picking up the short name. I had expected it to hold the old-school "comma name". The only place I can fine $MACHINE being assigned a value is in runclient.sh. As far as I can tell, my chain of commands does not invoke that script but goes straight for xymonclient.sh.<br>
<br>
Right now, it looks like I have two options:<br>
A) Modify xymonclient.sh to use MACHINEDOTS<br>
B) Use a CLIENT tag in my hosts.cfg to accept the short name<br>
<br>
I dislike the use of CLIENT tags, but in this case prefer it to remembering to patch the client script if I ever rebuild my software.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
-- <br>
   Do things because you should, not just because you can.<br>
<br>
John Thurston    <a href="tel:907-465-8591" value="+19074658591" target="_blank">907-465-8591</a><br>
<a href="mailto:John.Thurston@alaska.gov" target="_blank">John.Thurston@alaska.gov</a><br>
Department of Administration<br>
State of Alaska<br>
______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman<wbr>/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>