Xymon Mailing List Archive search

need help with 2 IPs for same host name

3 messages in this thread

list Cathy Smith · Wed, 23 Feb 2011 16:41:42 -0800 ·
Folks

Is there a way to list 2 different IP addresses for the same host name in the bb-hosts configuration file?  We run Hobbit on a RedHat 4 box.

Thanks.


Cathy

---
Cathy L. Smith
IT Engineer

Pacific Northwest National Laboratory
Operated by Battelle for the
U.S. Department of Energy

Phone:  XXX.XXX.XXXX
Fax:        XXX.XXX.XXXX
Email:     user-332e187d7d6d@xymon.invalid
list Martin Ward · Fri, 25 Feb 2011 10:25:48 -0000 ·
Hi Cathy,

 
You can, it just depends on how you want to use them, I have done this
quite successfully in my configuration.

 
One of the IPs will be the primary, this is the IP address that the
client will use to talk to the Xymon server and in your bb-hosts file
this must be given the same name as the hostname of the server. I use
this IP address for all checks that are performed locally on the client
and then sent back to the server by the Xymon client software.

 
The secondary IP address can be given any other name. This IP is used
for remote testing, in my example we have an external mail server
listening on this address as well as a DNS server, so a check of port 25
and a DNS query are done to ensure that these services are up and
running.

 
This is one way of doing it, I am sure there are others.

 
|\/|

 
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Smith, Cathy
Sent: 24 February 2011 00:42
To: xymon at xymon.com
Subject: [Xymon] need help with 2 IPs for same host name
quoted from Cathy Smith

 
Folks

 
Is there a way to list 2 different IP addresses for the same host name
in the bb-hosts configuration file?  We run Hobbit on a RedHat 4 box.

 
Thanks.

 
Cathy

 
---
Cathy L. Smith
IT Engineer

Pacific Northwest National Laboratory
Operated by Battelle for the
U.S. Department of Energy

Phone:  XXX.XXX.XXXX
Fax:        XXX.XXX.XXXX
Email:     user-332e187d7d6d@xymon.invalid

 

[Colt Disclaimer]
The message is intended for the named addressee only and may not be disclosed
to or used by anyone else, nor may it be copied in any way. The contents of
this message and its attachments are confidential and may also be subject to
legal privilege. If you are not the named addressee and/or have received this
message in error, please advise us by e-mailing user-51905b889b93@xymon.invalid and delete the
message and any attachments without retaining any copies. Internet
communications are not secure and Colt does not accept responsibility for this
message, its contents nor responsibility for any viruses. No contracts can be
created or varied on behalf of Colt Technology Services, its subsidiaries,
group companies or affiliates ("Colt") and any other party by email
communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate
potential viruses and unsolicited promotional emails. For more information
refer to www.colt.net or contact us on +44(0)20 7390 3900
list Jon Peatfield · Thu, 3 Mar 2011 01:24:11 +0000 (GMT) ·
quoted from Martin Ward
On Fri, 25 Feb 2011, Ward, Martin wrote:
Hi Cathy,

You can, it just depends on how you want to use them, I have done this
quite successfully in my configuration.

One of the IPs will be the primary, this is the IP address that the
client will use to talk to the Xymon server and in your bb-hosts file
this must be given the same name as the hostname of the server. I use
this IP address for all checks that are performed locally on the client
and then sent back to the server by the Xymon client software.

The secondary IP address can be given any other name. This IP is used
for remote testing, in my example we have an external mail server
listening on this address as well as a DNS server, so a check of port 25
and a DNS query are done to ensure that these services are up and
running.

This is one way of doing it, I am sure there are others.

|\/|
Just to add - in case it isn't obvious to everyone...

If for some reason you need the web pages to show the hosts name for both 
you can fake it with the NAME: entry, e.g. for a number of boxes here 
which each have an extra address for a round-robin ssh service we do:

...
0.0.0.0 hostname	# ssh
w.x.y.z ssh-hostname	# ssh COMMENT:"as rr-ssh" NAME:hostname
...

with the obvious replacements for w.x.y.z and hostname.

The name after the IP address must be unique in the bb-hosts config and if 
that isn't a real (DNS) hostname then you can't specify 0.0.0.0 for the 
address (I know that isn't recommended but I like to be lazy).

-- 
/--------------------------------------------------------------------\
| "Computers are different from telephones.  Computers do not ring." |
|       -- A. Tanenbaum, "Computer Networks", p. 32                  |
---------------------------------------------------------------------|
| Jon Peatfield, _Computer_ Officer, DAMTP,  University of Cambridge |
| Mail:  user-af441db25dda@xymon.invalid     Web:  http://www.damtp.cam.ac.uk/ |
\--------------------------------------------------------------------/