Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jan 2015 18:26:08 +0100
From:      Stefan Bethke <stb@lassitu.de>
To:        mat@FreeBSD.org
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: monitorings-plugin hangs on configure ICMPv6
Message-ID:  <1D9F2CF4-65B9-4543-9BF9-85EEC6593EA4@lassitu.de>
In-Reply-To: <6BD12A50-3226-4CF5-8789-14069F7908A6@lassitu.de>
References:  <6BD12A50-3226-4CF5-8789-14069F7908A6@lassitu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 11.01.2015 um 17:54 schrieb Stefan Bethke <stb@lassitu.de>:
>=20
> checking for ps syntax... /bin/ps axwo 'stat uid pid ppid vsz rss pcpu =
comm args'
> 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... ^C=3D=3D=3D>  Script "configure" =
failed unexpectedly.
>=20
> FreeBSD 9-stable, all ports up to date, inside a jail.
>=20
> Any suggestions?

Figured it out myself.  My google-foo did not give me any hints to what =
the problem is, only Linux related posts, but that led me to checking =
for jail-related issues. The help text is a bit terse, I had to look at =
the Makefile to understand what=E2=80=99s required.

Since I=E2=80=99m using NO_DIALOG, I have all my config option in =
/etc/make.conf.  I=E2=80=99ve added this:

+JAILED!=3D	/sbin/sysctl -n security.jail.jailed
+.if ${JAILED} =3D=3D 1
+monitoring-plugins_SET+=3D	JAIL
+nagios-plugins_SET+=3D	JAIL
+NAGIOSPOLLIP!=3Difconfig em0 | sed -nEe 's/.*inet (.*) netmask.*/\1/p'
+NAGIOSPOLLIP6!=3Difconfig em0 | sed -nEe 's/.*inet6 (.*) prefix.*/\1/p'
+.endif

(em 0 is my outward-facing interface on all the hosts.)

May I suggest to use something like this for the help text?

> If you are building the port inside a jail, you might need to tell =
check_ping which IP address to use as the source address, instead of =
127.0.0.1 and ::1, respectively.  Use the config option JAIL, and define =
NAGIOSPOLLIP and NAGIOSPOLLIP6 on the command line or in make.conf when =
building the port, setting them to the primary IPv4 and IPv6 address of =
your jail, respectively.

I have no idea what the second paragraph is supposed to tell me.  =
Irrespective of the first paragraph, you shouldn=E2=80=99t set the JAIL =
config option when building the package with poudriere?


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1D9F2CF4-65B9-4543-9BF9-85EEC6593EA4>