[Xymon] Displaying results when the DNS FQDN is different from uname -n

Stephen Carville (xymon list) scarville at lereta.com
Wed May 20 06:26:16 CEST 2020


> On 20/5/20 11:17, Stephen Carville (xymon list) wrote:
>> I have several new machines that do not display local information in 
>> XYMon. Part of that is the FQDN differs from the name returned by 
>> uname -n. For example apg-rdtx-nde-01.lereta.net thinks it is just 
>> plain apg-rdtx-nde-01.  I verified this by capturing the clientlog 
>> sent to the server.
>>
>> I tried the obvious trick of putting a CLIENT: entry into host.cfg but 
>> to no avail. That works for a couple of other nodes where the name 
>> returned by uname -n is different than the DNS name we know them by so 
>> I am mystified as to why it won't work here
>>
>> Example hosts.cfg entry:
>>
>> 10.1.224.187  apg-rdtx-nde-01.lereta.net  # ssh CLIENT:apg-rdtx-nde-01
>>
>> As I said above, I captured the traffic from one of the clients and I 
>> can see that it is sending the information to XYMon. However, I cannot 
>> find where it is being stored if at all. Normally, I look in 
>> /var/xymon/data/hostdata/<servername> but it doesn't appear to be there.
>>
>> Is there a way to make this work?
>>
> You might prefer to change this on the client. On Debian it is 
> configured in /etc/default/xymon-client, other OS versions might vary.
<Sound of palm striking forehead />

Once you mentioned it I knew where to look.  On RedHat/CentOS it is 
/etc/sysconfig/xymon-client.  I added the line:

CLIENTHOSTNAME="apg-rdtx-nde-01.lereta.net"

Restarted the xymnon client and everything is golden again.  Thank you 
very much.

> Otherwise, you can also check the Ghost clients report to see what names 
> are being sent which might provide some further clues.
> 
> Regards,
> Adam
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list