How to set the sourceaddress for all checks?

Marc Powell marc at ena.com
Fri Jun 15 16:43:05 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Michael Silver
> Sent: Thursday, June 14, 2007 5:32 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] How to set the sourceaddress for all
checks?
> 
> 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.

That's nice but that doesn't help with the network based nagios-plugins
any, which was the OP's goal. I didn't say it was impossible to do at
all, just not with the standard nagios plugins. 

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