Name instead of IP in hosts.cfg
list Rolf Schrittenlocher
Hi,
in the man-page I read:
"The format of an entry in the hosts.cfg file is as follows:
IP-address hostname # tag1 tag2 ..."
is there a way to use
"hostname hostname # ..." instead?
Reason is monitoring a service where the IP often changes.
Thanks for help,
Rolf
--
Mit freundlichen Gruessen
Rolf Schrittenlocher
Lokales Bibliothekssystem Frankfurt
Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX
LBS: user-7d592aff76ba@xymon.invalid
Persoenlich: user-4b3b4051a09b@xymon.invalid
list Jeremy Ruffer
Just use 0.0.0.0 for the IP address and it will use DNS. Regards Jeremy On 22 Sep 2016 12:16, "Rolf Schrittenlocher" <user-4b3b4051a09b@xymon.invalid>
▸
wrote:
Hi, in the man-page I read: "The format of an entry in the hosts.cfg file is as follows: IP-address hostname # tag1 tag2 ..." is there a way to use "hostname hostname # ..." instead? Reason is monitoring a service where the IP often changes. Thanks for help, Rolf -- Mit freundlichen Gruessen Rolf Schrittenlocher Lokales Bibliothekssystem Frankfurt Senckenberganlage 31, 60054 Frankfurt Tel: (XX) XX - XXX XXXXX LBS: user-7d592aff76ba@xymon.invalid Persoenlich: user-4b3b4051a09b@xymon.invalid
list Thomas Eckert
Hi Rolf, you can use `0.0.0.0` as the IP to force a DNS-lookup in all cases. Some (all?) versions of Xymon require the `testip`-flag to prevent DNS-lookups for the conn test. Something like 0.0.0.0 host.tld # testip should do the trick for you. Note that `testip` is for the `conn`-check only — the http-check for instance does not honour it (but that’s what you want anyway). Cheers Thomas
▸
On 22 Sep 2016, at 12:34, Rolf Schrittenlocher <user-4b3b4051a09b@xymon.invalid> wrote: Hi, in the man-page I read: "The format of an entry in the hosts.cfg file is as follows: IP-address hostname # tag1 tag2 ..." is there a way to use "hostname hostname # ..." instead? Reason is monitoring a service where the IP often changes. Thanks for help, Rolf -- Mit freundlichen Gruessen Rolf Schrittenlocher Lokales Bibliothekssystem Frankfurt Senckenberganlage 31, 60054 Frankfurt Tel: (XX) XX - XXX XXXXX LBS: user-7d592aff76ba@xymon.invalid Persoenlich: user-4b3b4051a09b@xymon.invalid