From owner-freebsd-questions@freebsd.org Thu Sep 22 22:44:04 2016 Return-Path: Delivered-To: freebsd-questions@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 17D67BE5150 for ; Thu, 22 Sep 2016 22:44:04 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "neonpark.inter-sonic.com", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D412A99A for ; Thu, 22 Sep 2016 22:44:03 +0000 (UTC) (envelope-from peo@intersonic.se) X-Virus-Scanned: amavisd-new at Intersonic AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intersonic.se; s=INTERSONICSE; t=1474583833; bh=TZzBvvSQWjtuipXQyBM7lh7AeK4bRoT47XnkzPZTjfM=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=Z7YQHg7T6ifZxlRjoLnpXdO/TYH+D1eo1jnMoq5hXKSVol7duu8GWujZmnmbYD95g h0NVTUB3sczUkqwnnAENyUpMEYfh6gjaHEdwCuee8Xb8kqqBM0ir5FBBhl2NIJJIcG uUnCGvo9cK+G9TyaX10pnvT03RiEcoUYfd461tio= Subject: Re: Nagios reports its own host as DOWN To: freebsd-questions@freebsd.org References: <7c549617-43df-e064-0ee6-5f4d7fcee9f6@gmail.com> From: Per olof Ljungmark Organization: Intersonic AB Message-ID: <2a67758f-2397-64c0-ec14-d37d9afa4d29@intersonic.se> Date: Fri, 23 Sep 2016 00:37:03 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <7c549617-43df-e064-0ee6-5f4d7fcee9f6@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 22:44:04 -0000 Hi, On 2016-09-21 10:03, Alnis Morics wrote: > Hi, > > I installed nagios4-4.1.1_5,1 on a FreeBSD 10.3 jail. (It's my first > time with Nagios) > > I managed the core to show up as working, and the system now lists its > first host (the one it is installed on) -- as DOWN. > > Small wander, because the way it checks this is by pinging "localhost" > (/sbin/ping -n -c 5 127.0.0.1 ), although ping is disabled in my jail > (as per default), and its localhost address is changed to 127.0.0.3. Well, if ping is disabled I suppose your systems behaves as intended? Not sure one wants to ping localhost in this case bacause if the host is down then Nagios would be as well? Or you read jail(8) to figure out how to allow ping. If you want to check real iron on the Nagios host it would probably be a lot easier not running it jailed although I'm sure it can be done. > How can I correct this checking? I found there is a script for checking > FreeBSD jails > (https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1859&cf_id=24) > but, again, I can't find any hint of how to use it or whether it can > help me at all. Will I be able to check services on jails of other > machines? Yes you will, both through the "real" host or nrpe on the jailed. There may be other things that blocks of course like firewalls etc. Cheers, //per