From owner-freebsd-ports@FreeBSD.ORG Thu Jun 19 14:09:01 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5DE7A40 for ; Thu, 19 Jun 2014 14:09:01 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27B00247F for ; Thu, 19 Jun 2014 14:09:00 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id E8B216A6005; Thu, 19 Jun 2014 16:08:56 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id s5JE8u3s024880; Thu, 19 Jun 2014 16:08:56 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id s5JE8uKn024774; Thu, 19 Jun 2014 16:08:56 +0200 (CEST) (envelope-from lars) Date: Thu, 19 Jun 2014 16:08:56 +0200 From: Lars Engels To: Marco Steinbach Subject: Re: [CFT]: net-mgmt/icinga2 Message-ID: <20140619140856.GE53663@e-new.0x20.net> References: <20140618143633.GA53663@e-new.0x20.net> <53A2EAD8.40702@executive-computing.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SWTRyWv/ijrBap1m" Content-Disposition: inline In-Reply-To: <53A2EAD8.40702@executive-computing.de> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p4 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 14:09:01 -0000 --SWTRyWv/ijrBap1m Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 19, 2014 at 03:51:20PM +0200, Marco Steinbach wrote: > Lars Engels wrote on 18.06.2014 16:36: > > Hey folks, > >=20 > > I proudly present a CFT for the shiny new monitoring software Icinga 2, > > a completely rewritten, multi-threaded, flexible and scalable successor > > to Icinga 1. > > Although it is completely new it still can run with your Icinga / Nagios > > plugins and addons. > >=20 > > To use Icinga 2 with the Classic Web interface do the following: > >=20 > > % Download and extract shar file=20 > >=20 > > # fetch -o /tmp http://bsd-geek.de/FreeBSD/icinga2_1.shar > > # cd /usr/ports && sh /tmp/icinga2_1.shar > >=20 > > % Install net-mgmt/icinga2 > > % Install net-mgmt/icinga=20 > > % Install www/apache22 > >=20 > > % Configure Apache and Icinga Classic Web > >=20 > > # cp /usr/local/share/examples/icinga/apache22/icinga.conf-sample /usr/= local/etc/apache2/Includes/icinga.conf > > # cp /usr/local/etc/icinga/cgi.cfg-sample /usr/local/etc/icinga/cgi.cfg > >=20 > > % Make changes to cgi.cfg: > >=20 > > standalone_installation=3D1 > > object_cache_file=3D/var/cache/icinga2/objects.cache > > status_file=3D/var/cache/icinga2/status.dat > > command_file=3D/var/run/icinga2/cmd/icinga2.cmd > > log_file=3D/var/log/icinga2/compat/icinga.log > > log_archive_path=3D/var/log/icinga2/compat/archives > >=20 > > % Create a basic auth file=20 > >=20 > > # htpasswd -c -s /usr/local/etc/icinga/htpasswd.users icingaadmin > > (enter some password) > >=20 > > % Enable Apache and Icinga 2 > >=20 > > # sysrc apache22_enable=3DYES > > # sysrc icinga2_enable=3DYES > >=20 > > % Enable additional Icinga 2 features > >=20 > > # icinga2-enable-feature checker command compatlog icingastatus livesta= tus mainlog notification statusdata > >=20 > > % Start Apache and Icinga 2 > >=20 > > # service apache22 start > > # service icinga2 start > >=20 > > % Check /var/log/icinga2/icinga2.log and error.log for any errors > > % Browse to http://localhost/icinga > > % Log in as icingaadmin > >=20 > > % Read http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc > >=20 > > % (Hopefully) have fun! > >=20 > > Please share your experience with me. :) >=20 > # uname -a > FreeBSD jail008.c0c0.intra 9.3-BETA2 FreeBSD 9.3-BETA2 #0 r267346: > # which flex > /usr/bin/flex > # flex --version > flex version 2.5.4 >=20 > # make > [...] > -- Found FLEX: /usr/bin/flex version 2.5.4 (Required is at least version= =20 > "2.5.31") > [...] > [ 3%] [FLEX][class_lexer] Building scanner with flex /usr/bin/flex=20 > version 2.5.4 > "class_lexer.ll", line 92: unrecognized %option: reentrant > "class_lexer.ll", line 93: unrecognized %option: bison-bridge > "class_lexer.ll", line 94: unrecognized %option: unistd > *** [tools/mkclass/class_lexer.cc] Error code 1 > 1 error > *** [tools/mkclass/CMakeFiles/mkclass.dir/all] Error code 2 > [ 3%] Built target execvpe > 1 error > *** [all] Error code 2 > 1 error >=20 >=20 > Depending on flex from ports (flex-2.5.39_1) fixes this from me. >=20 > .if ${OSVERSION} < 1000033 > BUILD_DEPENDS+=3D flex>=3D2.5.31:${PORTSDIR}/textproc/flex > CMAKE_ARGS+=3D -DFLEX_EXECUTABLE:STRING=3D${LOCALBASE}/bin/flex > CXXFLAGS+=3D -I${LOCALBASE}/include/flex > .endif >=20 > MfG CoCo >=20 Good catch, thanks for this! I just updated the shar file and also added WWW to pkg-descr. Lars --SWTRyWv/ijrBap1m Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQF8BAEBCgBmBQJTou74XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tFcIH/jv76GO+2oaUH92hq4093yX2 1JZsc5mFTTSif6E1TaniOtGpKPDmHZBD1vHW6ZYFwISRejMTA4Cj7xi81/laSDP2 lV6HccC6IdNRItgzQ759olK18zelSz0xUd+d0YHfQLHeEYi+HH5qGOpdJGVyvPUc 1KekJzR2M0xrm4ARYraGw/2i54cBJYe7i97cm9q6CO1Nfqrd24AGcwP/jUvvrvjz RuxoAgaMp7BNJZ7wH1tLCT2rz+nvvnx7wS0pvZGY8OJkf2Fxj72JiYt+oNNCrby8 AlHZb2lE6868N7qc2BJ/FIUXWqaBS3HeMwvT5av6RW1KWvySpSnW0EYz7XEIGAg= =rQAf -----END PGP SIGNATURE----- --SWTRyWv/ijrBap1m--