Xymon Mailing List Archive search

Name instead of IP in hosts.cfg

3 messages in this thread

list Rolf Schrittenlocher · Thu, 22 Sep 2016 12:34:06 +0200 ·
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 · Thu, 22 Sep 2016 12:31:10 +0100 ·
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>
quoted from Rolf Schrittenlocher
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 · Thu, 22 Sep 2016 13:39:27 +0200 ·
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
quoted from Rolf Schrittenlocher
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