any way to specify source address for server?

Steve Shipway s.shipway at auckland.ac.nz
Wed May 10 00:45:45 CEST 2006


> > I'd like to give my Nagios server a virtual IP address, so that if we 
> > want to migrate the monitoring service to another machine in the 
> > future, it'll be easy (just setup the new machine and give 
> it the same virtual IP).
...
> This is a tricky issue. First of all I must assume you are 
> referring to the actions taken by the various checks. These 
> are in fact regulated by the individual plugins so there is 
> not a single way to solve this.

I understand what you're trying to achieve - just set up a single ACL on
your routers (for example) and have the Nagios service always query from
this (virtual) IP, wherever it actually lives.

For reasons stated before, this is almost impossible.  The only way I can
think of doing it is to set up a route definition on the Nagios host
directing all traffic via the virtual IP, although that is rather messy.

Here, we have Nagios on a virtual IP moving between two linux-ha hosts.
NSCA listens to a port on the virtual IP.  However, Nagios will query from
the physical IP of whichever host it is on, so we have had to set up both
physical IPs in the ACLs.

I suppose you could set up a special subnet for your monitoring servers, and
set your ACLs to allow that subnet.  Or, if only certain checks (SNMP?)
require this source IP, you might be able to modify the appropriate plugins
to specify source route.  However, it doesnt seem feasible to do it for all
the plugins.

Steve 




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list