need help with 2 IPs for same host name
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: 509.375.2687 Fax: 509.375.2330 Email: cathy.smith at pnl.gov
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
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: 509.375.2687 Fax: 509.375.2330 Email: cathy.smith at pnl.gov
[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 abuse at colt.net 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
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: jp107 at damtp.cam.ac.uk Web: http://www.damtp.cam.ac.uk/ |
\--------------------------------------------------------------------/
participants (3)
-
cathy.smith@pnl.gov
-
J.S.Peatfield@damtp.cam.ac.uk
-
Martin.Ward@colt.net