How to set the sourceaddress for all checks?

Michael Silver msilver at prl.ab.ca
Fri Jun 15 00:32:24 CEST 2007


nagios-users-bounces at lists.sourceforge.net wrote:
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net
>> [mailto:nagios-users- bounces at lists.sourceforge.net] On Behalf Of
>> Ingo Lantschner 
>> Sent: Thursday, June 14, 2007 9:31 AM
>> To: nagios-users nagios-users
>> Subject: [Nagios-users] How to set the sourceaddress for all checks?
>> 
>> Hi,
>> if I  am running Nagios on a host with more than one IP address on
>> the same physical network (trough aliases like eth0:1): Can I set the
>> IP-source-address used for running the network-related-checks in one
>> point? If yes, where please :-)
> 
> You cannot. Your OS's TCP stack determines what source IP to use; the
> base IP on the interface used to reach the destination network.

Actually, some versions of ping do allow you to set the source address.
The version in iputils package allows you to set the IP via -I <address
or interface name>. I don't have a machine I can test the exact
situation described, but I believe it will work as desired.

Michael

Michael Silver, Network Administrator
Parkland Regional Library
5404 56 Avenue Lacombe, AB T4L 1G1
Phone: 403.782.3850    Fax: 403.782.4650
http://www.prl.ab.ca/  msilver at prl.ab.ca


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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