From owner-freebsd-jail@FreeBSD.ORG Tue Jan 6 14:57:25 2009 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A86F5106564A for ; Tue, 6 Jan 2009 14:57:25 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from blade2-ext.obspm.fr (blade2-ext.obspm.fr [145.238.186.8]) by mx1.freebsd.org (Postfix) with ESMTP id 430C68FC13 for ; Tue, 6 Jan 2009 14:57:25 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from obspm.fr (pcjas.obspm.fr [145.238.184.233]) by blade2-ext.obspm.fr (8.13.8/8.13.8/SIO Observatoire de Paris - 15/11/07) with ESMTP id n06EvGj0002797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 6 Jan 2009 15:57:17 +0100 Date: Tue, 6 Jan 2009 15:57:16 +0100 From: Albert Shih To: Kurt Jaeger Message-ID: <20090106145716.GE94159@obspm.fr> References: <20081217210542.GA25347@obspm.fr> <20081218172218.GE3080@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20081218172218.GE3080@home.opsec.eu> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (blade2-ext.obspm.fr [145.238.186.20]); Tue, 06 Jan 2009 15:57:17 +0100 (CET) X-Virus-Scanned: ClamAV 0.94.2/8839/Tue Jan 6 15:09:27 2009 on blade2-ext.obspm.fr X-Virus-Status: Clean Cc: freebsd-jail@FreeBSD.org Subject: Re: Nagios & Jail X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Albert.Shih@obspm.fr List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 14:57:25 -0000 Le 18/12/2008 à 18:22:18+0100, Kurt Jaeger a écrit > Hi! > > > I've a problem with check_ping. > > > > [root@]# /usr/local/libexec/nagios/check_ping -H some_host -w 3000.0,80% -c 5000.0,100% -p 5 > > CRITICAL - You need more args!!! > > Could not open pipe: > > > Anyone have succefully install a nagios server in a jail ? First : Happy new years. > > Yes, and I think it's not a problem with ICMP sockets, but with > the version of check_ping and what it's calling. > > Please try > > ./check_ping -v -v -v -H 212.71.195.58 -w 300.0,80% -c 500.0,100% -p 5 > > and tell us which version of ping it is calling. > Thanks for your answers. In fact I found the problem : When I compile nagios-plugin ports in a jail the «configure» don't find syntax of ping : checking for ping... /sbin/ping checking for ping6... /sbin/ping6 checking for ICMP ping syntax... configure: WARNING: unable to find usable ping syntax But if I compile the same ports in a «normal» server (both are amd64). checking for ping... /sbin/ping checking for ping6... /sbin/ping6 checking for ICMP ping syntax... /sbin/ping -n -c %d %s checking for ICMPv6 ping syntax... /sbin/ping6 -n -c %d %s So if I use the check_ping produce by compiling in a no-jail server on a jail-server it's working. I think it's a bug about the nagios-plugins ports. What you think ? In fact that's not very important because I'm going to use check_fping Thanks again for your answer. Regards. JAS -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26 Heure local/Local time: Mar 6 jan 2009 15:48:55 CET