Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2014 16:08:56 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        Marco Steinbach <coco@executive-computing.de>
Cc:        ports@FreeBSD.org
Subject:   Re: [CFT]: net-mgmt/icinga2
Message-ID:  <20140619140856.GE53663@e-new.0x20.net>
In-Reply-To: <53A2EAD8.40702@executive-computing.de>
References:  <20140618143633.GA53663@e-new.0x20.net> <53A2EAD8.40702@executive-computing.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140619140856.GE53663>