Xymon Mailing List Archive search

Using hostname instead of IP in bb-hosts

3 messages in this thread

list Manu · Mon, 28 Nov 2005 09:32:41 +0100 ·
Hi,

I'm new to the list and also new to hobbit.
I'm using the release candidate 4.12p1 on debian linux and several others.

My problem is, that I have to monitor computers which are connected to the internet by a dialup dsl connection. Those are getting a new ip-address from the isp every 24 hours and ddclient is updating it to dynamic dns. I need to monitor the machines because they provide the internet for our conference rooms and are not connected to our internal network.

I added the following line to bb-hosts:

<dyndns-hostname> DSL1 # BBDISPLAY BBPAGER BBNET conn

but hobbit ignores this line and doesn't throw an error.
Is there a way to use hostnames instead of the ip-address?


apart from this, I started with an entry like this:

10.0.0.101  host1 ...

and realized, that I misspelled the ip-address. So I changed it to 10.0.0.103 but hobbit keeps pinging the old ip address. Can I tell hobbit to update the ip-address manually?

Thanks in advance.

Kind regards,
Manuel
list Henrik Størner · Mon, 28 Nov 2005 09:38:06 +0100 ·
quoted from Manu
On Mon, Nov 28, 2005 at 09:32:41AM +0100, Manu wrote:
I'm using the release candidate 4.12p1 on debian linux and several others.
Just to clarify, 4.1.2p1 is a full release version - release candidates
always have "...rcX" in the version number.
My problem is, that I have to monitor computers which are connected to the internet by a dialup dsl connection. Those are getting a new ip-address from the isp every 24 hours and ddclient is updating it to dynamic dns.
Put them in the bb-hosts file with IP "0.0.0.0" - that tells Hobbit
they have a dynamic IP.
quoted from Manu
10.0.0.101  host1 ...

and realized, that I misspelled the ip-address. So I changed it to 10.0.0.103 but hobbit keeps pinging the old ip address.
Hobbit will in fact always use the hostname and do a DNS lookup,
unless you've put "testip" on that entry in the bb-hosts file,
or you are using the "--dns=ip" option for running the network tests. So first you should check what IP "host1" really resolves
to (use the "host" or "dig" commands) - and don't forget to check the local /etc/hosts file on the Hobbit server.


Regards,
Henrik
list Manu · Mon, 28 Nov 2005 09:56:53 +0100 ·
Ok, that makes sense :)

Thanks a lot for the quick answer.

----- Message from user-ce4a2c883f75@xymon.invalid ---------
quoted from Henrik Størner
     Date: Mon, 28 Nov 2005 09:38:06 +0100
     From: Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>
Reply-To: user-ae9b8668bcde@xymon.invalid
  Subject: Re: [hobbit] Using hostname instead of IP in bb-hosts
       To: user-ae9b8668bcde@xymon.invalid

On Mon, Nov 28, 2005 at 09:32:41AM +0100, Manu wrote:
I'm using the release candidate 4.12p1 on debian linux and several others.
Just to clarify, 4.1.2p1 is a full release version - release candidates
always have "...rcX" in the version number.
My problem is, that I have to monitor computers which are connected to
the internet by a dialup dsl connection. Those are getting a new
ip-address from the isp every 24 hours and ddclient is updating it to
dynamic dns.
Put them in the bb-hosts file with IP "0.0.0.0" - that tells Hobbit
they have a dynamic IP.
10.0.0.101  host1 ...

and realized, that I misspelled the ip-address. So I changed it to
10.0.0.103 but hobbit keeps pinging the old ip address.
Hobbit will in fact always use the hostname and do a DNS lookup,
unless you've put "testip" on that entry in the bb-hosts file,
or you are using the "--dns=ip" option for running the network
tests. So first you should check what IP "host1" really resolves
to (use the "host" or "dig" commands) - and don't forget to check
the local /etc/hosts file on the Hobbit server.


Regards,
Henrik

----- End message from user-ce4a2c883f75@xymon.invalid -----