From owner-freebsd-ports@freebsd.org Fri Sep 11 16:20:06 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98511A02599 for ; Fri, 11 Sep 2015 16:20:06 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.auburn.protected-networks.net (mail.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.auburn.protected-networks.net", Issuer "Protected Networks Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 67256183D; Fri, 11 Sep 2015 16:20:06 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA v2" (verified OK)) (Authenticated sender: imb@mail.auburn.protected-networks.net) by mail.auburn.protected-networks.net (Postfix) with ESMTPSA id 7D359B858; Fri, 11 Sep 2015 12:20:04 -0400 (EDT) Subject: Re: nagios-plugins 2.1.1 segmentation fault To: Mathieu Arnold , Albert Shih , freebsd-ports@freebsd.org References: <20150910152646.GA73222@pcjas.obspm.fr> <1F80D3C17D9ABA2903628A86@atuin.in.mat.cc> From: Michael Butler Message-ID: <55F2FF34.1070002@protected-networks.net> Date: Fri, 11 Sep 2015 12:20:04 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1F80D3C17D9ABA2903628A86@atuin.in.mat.cc> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 16:20:06 -0000 On 09/11/15 03:18, Mathieu Arnold wrote: > > > +--On 10 septembre 2015 17:26:46 +0200 Albert Shih > wrote: > | Hi, > | > | I find a bug about nagios-plugins-2.1.1 I don't known if it's the > | freebsd-ports version or it's about the plugins himself. Anyway if you do > | a > | > | check_http host > | > | where the host didn't answer but can be reach (apache not running) you get > | a Segmentation fault and a core dump. > | > | Easy to try > | > | check_http 127.0.0.1 > | > | Regards. > > Hi, > > I can't reproduce this: > > # /usr/local/libexec/nagios/check_http 127.0.0.1 > HTTP OK: HTTP/1.1 301 Moved Permanently - 491 bytes in 0.001 second > response time |time=0.000816s;;;0.000000 size=491B;;;0 > > Note that using check_http that way is some old legacy way of doing it, you > should run it as: > > # /usr/local/libexec/nagios/check_http -H 127.0.0.1 > HTTP OK: HTTP/1.1 301 Moved Permanently - 491 bytes in 0.000 second > response time |time=0.000367s;;;0.000000 size=491B;;;0 Try it on a machine that *isn't* listening on port 80 .. imb