Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2015 14:28:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196725] net-mgmt/nagios-plugins: Fix check_dig on > 10 with IPv6
Message-ID:  <bug-196725-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196725

            Bug ID: 196725
           Summary: net-mgmt/nagios-plugins: Fix check_dig on > 10 with
                    IPv6
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat@FreeBSD.org
          Reporter: brd@FreeBSD.org
          Assignee: mat@FreeBSD.org
             Flags: maintainer-feedback?(mat@FreeBSD.org)

Created attachment 151623
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151623&action=edit
patch

With IPv6 queries the flags are put in out of order which prevent drill from
ever returning:

# /usr/local/libexec/nagios/check_dig -6 -H ::1 -T AAAA -l ns4.example.com -a
::2 -v                                                    
/usr/bin/drill  @::1 -z -p 53 ns4.example.com AAAA -6
Looking for: '::2'
CRITICAL - Plugin timed out while executing system call
#

The patch fixes the flags to be before the query:

# /usr/local/libexec/nagios/check_dig -6 -H ::2 -T AAAA -l ns4.liquidneon.com
-a ::2 -v
/usr/bin/drill  @::2 -z -p 53 -6 ns4.example.com AAAA
Looking for: '2607:fc50:1000:8000::2'
;; ANSWER SECTION:
ns4.example.com.     3600    IN      AAAA    ::2
DNS OK - 0.070 seconds response time (ns4.exampe.com. 3600 IN AAAA
::2)|time=0.069712s;;;0.000000
#

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer mat@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196725-13>