Xymon Mailing List Archive search

client change of IP...

4 messages in this thread

list Ian Diddams · Thu, 11 Oct 2018 11:26:14 +0000 (UTC) ·

xymon 4.3.28
learned something new today!

We have a xymon client  - lets call it FRED.  FRED has its IP changed and so hosts.cfg is updated with the new IP.

BUT
the xymon conn test continues to use the previous IP to ping against.
It seems (my learning point!) that the conn test does NOT use the contents of hosts.cfg...  but the dns resolution for the hostname (or at least primarily).

Only when the DNS was updated did xymon then use the new IP for the conn test.

Who knew?  (Well, not me bit I expect all you probably did!  LOL)
didds
list Norbert Kriegenburg · Thu, 11 Oct 2018 14:23:51 +0200 ·
HI Ian,

you can use the "testip" in hosts.cfg for that host to prevent the dns
lookup.
Or, if you want this as a general setting, add "--dns=ip" at the xymonnet
section in tasks.cfg (no restart is needed).

For details please check "man hosts.cfg" or "man xymonnet"

HTH

Norbert


From:	Ian Diddams via Xymon <xymon at xymon.com>
To:	Xymon Mailing List <xymon at xymon.com>
Date:	10/11/2018 01:46 PM
Subject:	[Xymon] client change of IP...
Sent by:	"Xymon" <xymon-bounces at xymon.com>


----- Message from Ian Diddams <user-7fbf34ed5219@xymon.invalid> on Thu, 11 Oct 2018
11:26:14 +0000 (UTC) -----
                                                
      To: Xymon Mailing List <xymon at xymon.com>  
                                                
 Subject: client change of IP...                
quoted from Ian Diddams
                                                

xymon 4.3.28

learned something new today!

We have a xymon client  - lets call it FRED.  FRED has its IP changed and
so hosts.cfg is updated with the new IP.

BUT

the xymon conn test continues to use the previous IP to ping against.

It seems (my learning point!) that the conn test does NOT use the contents
of hosts.cfg...  but the dns resolution for the hostname (or at least
primarily).

Only when the DNS was updated did xymon then use the new IP for the conn
test.

Who knew?  (Well, not me bit I expect all you probably did!  LOL)

didds
list Scot Kreienkamp · Thu, 11 Oct 2018 12:49:24 +0000 ·
That is the normal behavior, yes.  Look into the testip argument for hosts.cfg if you want it to use the IP instead of DNS.


Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
quoted from Ian Diddams
From: Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
Sent: Thursday, October 11, 2018 7:26 AM
To: Xymon Mailing List <xymon at xymon.com>
Subject: client change of IP...


xymon 4.3.28

learned something new today!

We have a xymon client  - lets call it FRED.  FRED has its IP changed and so hosts.cfg is updated with the new IP.

BUT

the xymon conn test continues to use the previous IP to ping against.

It seems (my learning point!) that the conn test does NOT use the contents of hosts.cfg...  but the dns resolution for the hostname (or at least primarily).

Only when the DNS was updated did xymon then use the new IP for the conn test.

Who knew?  (Well, not me bit I expect all you probably did!  LOL)

didds

This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Ralph Mitchell · Thu, 11 Oct 2018 10:35:26 -0400 ·
This is one reason you might want to run a DNS cache on your Xymon server.
Everything gets looked up, every time.

Ralph Mitchell

On Thu, Oct 11, 2018 at 7:46 AM Ian Diddams via Xymon <xymon at xymon.com>
wrote:
---------- Forwarded message ----------
From: Ian Diddams <user-7fbf34ed5219@xymon.invalid>
To: Xymon Mailing List <xymon at xymon.com>
Cc:
Bcc:
Date: Thu, 11 Oct 2018 11:26:14 +0000 (UTC)
quoted from Scot Kreienkamp
Subject: client change of IP...


xymon 4.3.28

learned something new today!

We have a xymon client  - lets call it FRED.  FRED has its IP changed and
so hosts.cfg is updated with the new IP.

BUT

the xymon conn test continues to use the previous IP to ping against.

It seems (my learning point!) that the conn test does NOT use the contents
of hosts.cfg...  but the dns resolution for the hostname (or at least
primarily).

Only when the DNS was updated did xymon then use the new IP for the conn
test.

Who knew?  (Well, not me bit I expect all you probably did!  LOL)

didds


---------- Forwarded message ----------
quoted from Ian Diddams
From: Ian Diddams via Xymon <xymon at xymon.com>
To: Xymon Mailing List <xymon at xymon.com>

Cc:
Bcc:
Date: Thu, 11 Oct 2018 11:26:14 +0000 (UTC)
Subject: [Xymon] client change of IP...