Date: Thu, 22 Sep 2016 18:44:27 -0500 (CDT) From: "Valeri Galtsev" <galtsev@kicp.uchicago.edu> To: "Per olof Ljungmark" <peo@intersonic.se> Cc: freebsd-questions@freebsd.org Subject: Re: Nagios reports its own host as DOWN Message-ID: <31887.128.135.52.6.1474587867.squirrel@cosmo.uchicago.edu> In-Reply-To: <2a67758f-2397-64c0-ec14-d37d9afa4d29@intersonic.se> References: <7c549617-43df-e064-0ee6-5f4d7fcee9f6@gmail.com> <2a67758f-2397-64c0-ec14-d37d9afa4d29@intersonic.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, September 22, 2016 5:37 pm, Per olof Ljungmark wrote: > 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. I run nagios in jail. As you said ping localhost doesn't make much sense, yet I didn't disable that. I check also a bunch of other services on localhost, so I didn't threw away localhost part from my nagios configuration. As you said, one needs to read jail(8) and allow ping. One more thing, it is helpful to do similar ping test from that same jail just from command line. Similarly, before adding checking of some port on some host to nagios, it is good to attempt from command line to telnet that host that port. This way one can rule out firewalls etc, and will know it is nagios part one needs to look into. Valeri > >> 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31887.128.135.52.6.1474587867.squirrel>