Standard Nagios Plugins 1.4.9 and IPv6 problem?

Andreas Ericsson ae at op5.se
Fri Sep 21 17:06:15 CEST 2007


Holger Weiss wrote:
> To be nitpicking, it doesn't "send out IPv6 traffic", it merely asks

..

> following patch should work around your problem for most C plugins:
> 
> -----------------------------------------------------------
> --- netutils.c.orig	2007-01-20 07:07:48.000000000 +0100
> +++ netutils.c	2007-09-21 16:28:13.117372070 +0200
> @@ -39,7 +39,7 @@
>  unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; 
>  int econn_refuse_state = STATE_CRITICAL;
>  int was_refused = FALSE;
> -int address_family = AF_UNSPEC;
> +int address_family = PF_INET;
>  

Since we're nitpicking anyways, this should be AF_INET, although
any system where AF_INET != PF_INET is quite clearly insane ;-)

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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