Indeed this is down to the OS, but you can use the routing tables on the host to determine which interface is used to connect to what.
-h Hari Sekhon Marc Powell 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. > > -- > Marc > > ------------------------------------------------------------------------- > 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 > [email protected] > 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 > > ------------------------------------------------------------------------- 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 [email protected] 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
