Nagios reports its own host as DOWN

Per olof Ljungmark peo at
Thu Sep 22 22:44:04 UTC 2016


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 ), although ping is disabled in my jail
> (as per default), and its localhost address is changed to

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
> (
> 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.



More information about the freebsd-questions mailing list