Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2010 10:59:40 +0200
From:      "Charlie &" <root@flappie.debank.tv>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jarrod@netleader.com.au
Subject:   ports/145668: nagios-plugins ping6 broken
Message-ID:  <5b2c6528bacf2a5a071df1c7f380f4e8, 20100413085940.0E2981DB2143@smtp.debank.tv>
Resent-Message-ID: <201004130920.o3D9K21c027746@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145668
>Category:       ports
>Synopsis:       nagios-plugins ping6 broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 09:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rob Evers
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD flappie.debank.tv 8.0-STABLE FreeBSD 8.0-STABLE #1: Thu Apr 8 08:12:34 CEST 2010 root@flappie.debank.tv:/usr/obj/usr/src/sys/FLAPPIE amd64


>Description:

When using nagios plugins with IPV6 enabled in a jail the check_ping command doesn't work to an IPV6 address, this is due to a failed test during the configure stage (I think it tries to ping6 ::1 which doesn't work in a jail)
I tried the configure in a non jailed environment and there everything works as expected (the ping6 command syntax is validated as working during configure stage)

>How-To-Repeat:

Within a jail execute:
/usr/local/libexec/nagios/check_ping -H {IPV6 address} -w 100,10% -c 200,20% -6

where the {IPV6 address} is replaced with a real address
Fix:

	<how to correct or work around the problem, if known (multiple lines)>

Patch attached which hardcodes the ping6 command when nagios-plugins is installed inside a jail

--- nagios-plugins.patch begins here ---
diff -ru nagios-plugins.org/Makefile nagios-plugins/Makefile
--- nagios-plugins.org/Makefile 2009-12-26 11:18:11.000000000 +0100
+++ nagios-plugins/Makefile     2010-04-13 10:40:45.000000000 +0200
@@ -136,6 +136,10 @@
 PLIST_SUB+=    NLS=""
 .endif
 
+.if defined(WITH_JAIL)
+CONFIGURE_ARGS+=        --with-ping6-command="/sbin/ping6 -n -c %d %s"
+.endif
+
 post-patch:
 .for file in check_by_ssh.c check_disk.c check_http.c check_mrtgtraf.c \
        check_nagios.c check_pgsql.c check_snmp.c check_ssh.c check_swap.c \
--- nagios-plugins.patch ends here ---

***deze e-mail is gescand door Onlinespamfilter.nl***
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5b2c6528bacf2a5a071df1c7f380f4e8, 20100413085940.0E2981DB2143>