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/ |
\--------------------------------------------------------------------/