[EMAIL PROTECTED] wrote: >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:nagios-users- [EMAIL PROTECTED] 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/ [EMAIL PROTECTED] ------------------------------------------------------------------------- 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@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