Re: [Nagios-users] How to set the sourceaddress for all checks?
-Original Message- From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 9:50 AM To: Ingo Lantschner; Marc Powell; Hari Sekhon; Michael Silver Cc: nagios-users nagios-users Subject: Re: [Nagios-users] How to set the sourceaddress for all checks? On Thu, 2007-06-14 at 16:30 +0200, Ingo Lantschner wrote: Hi, if I am running Nagios on a host with more than one IP address on I've discussed, many times in the past, the need to be able to explicitly define the sources address that check plugins transmit from (TCP, ICMP, UDP at the very least) as part of the Nagios API. Have you been discussing it in the proper forum of [EMAIL PROTECTED] The plugins are a separate project from nagios. Though many of the developers might hang out here, they might not pay much attention. I'm sure they'd be happy to look at any provided patches if you had the time. These are simple one-line changes does in setsockopt(2) and getaddrinfo(2) http://netbsd.gw.com/cgi-bin/man-cgi?setsockopt++NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?getaddrinfo++NetBSD-current Being a hacker and not a coder, I don't have much to say about this other than the current implementation is consistent and easy to support. A non-trivial number of plugins are written in other languages that this wouldn't apply to (PERL, shell, etc). -- 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@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
Re: [Nagios-users] How to set the sourceaddress for all checks?
-Original Message- From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 11:50 AM To: Marc Powell Cc: Ingo Lantschner; Hari Sekhon; Michael Silver; nagios-users nagios- users Subject: RE: [Nagios-users] How to set the sourceaddress for all checks? Right: it gets tricky if you're runing a shell script wrapper around a perl script that exec()'s nc(1). You specifically invited me into this conversation. I didn't ask to be in it ;) I presumed you wanted my opinion, I gave it. Distorting what I said isn't helpful. *shrug* -- 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@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
Re: [Nagios-users] How to set the sourceaddress for all checks?
-Original Message- From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 1:58 PM To: Marc Powell Cc: Ingo Lantschner; Hari Sekhon; Michael Silver; nagios-users nagios- users Subject: RE: [Nagios-users] How to set the sourceaddress for all checks? Then let us end it right now. There are other, more-noble(*), battles to fight, and my ACLs support aggregate object-groups in the mean time. Don't end it if it's important to you, just take it to the right forum where the people that actually maintain the plugins can chew on it. *) Bacula Director, rpcbind Mmmm. Directory. That's Crunchy. I've had fun with that one before. -- 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@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
Re: [Nagios-users] How to set the sourceaddress for all checks?
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. Thanks to all your clarifications and suggestions - actually there were redundant routes on this host which resulted in unpredictable source-addresses when running the checks. Thanks again, Ingo. -- Ingo Lantschner Vienna/Austria Mob (+43-664) 143 84 18 - 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
Re: [Nagios-users] How to set the sourceaddress for all checks?
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Michael Silver Sent: Thursday, June 14, 2007 5:32 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] How to set the sourceaddress for all checks? [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. 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@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
Re: [Nagios-users] How to set the sourceaddress for all checks?
Howdy, 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. Duh. I was thinking you could define it as an additional parameter in the command config. And since check_ping is a C plugin instead of a script, modifying it is definitely outside my abilities! My apologies, and thanks for the pointer. Since I've learned something already, do you think the boss would let me go home now? (9 AM on a Friday my time) :-) Michael Michael Silver, Network Administrator Parkland Regional Library 5404 56 Avenue Lacombe, AB T4L 1G1 Phone: 403.782.3850Fax: 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
Re: [Nagios-users] How to set the sourceaddress for all checks?
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 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 - 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
Re: [Nagios-users] How to set the sourceaddress for all checks?
[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.3850Fax: 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