Date: Thu, 19 Jun 2014 15:51:20 +0200 From: Marco Steinbach <coco@executive-computing.de> To: Lars Engels <lars.engels@0x20.net> Cc: ports@FreeBSD.org Subject: Re: [CFT]: net-mgmt/icinga2 Message-ID: <53A2EAD8.40702@executive-computing.de> In-Reply-To: <20140618143633.GA53663@e-new.0x20.net> References: <20140618143633.GA53663@e-new.0x20.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Lars Engels wrote on 18.06.2014 16:36: > Hey folks, > > 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. > > To use Icinga 2 with the Classic Web interface do the following: > > % Download and extract shar file > > # fetch -o /tmp http://bsd-geek.de/FreeBSD/icinga2_1.shar > # cd /usr/ports && sh /tmp/icinga2_1.shar > > % Install net-mgmt/icinga2 > % Install net-mgmt/icinga > % Install www/apache22 > > % Configure Apache and Icinga Classic Web > > # 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 > > % Make changes to cgi.cfg: > > standalone_installation=1 > object_cache_file=/var/cache/icinga2/objects.cache > status_file=/var/cache/icinga2/status.dat > command_file=/var/run/icinga2/cmd/icinga2.cmd > log_file=/var/log/icinga2/compat/icinga.log > log_archive_path=/var/log/icinga2/compat/archives > > % Create a basic auth file > > # htpasswd -c -s /usr/local/etc/icinga/htpasswd.users icingaadmin > (enter some password) > > % Enable Apache and Icinga 2 > > # sysrc apache22_enable=YES > # sysrc icinga2_enable=YES > > % Enable additional Icinga 2 features > > # icinga2-enable-feature checker command compatlog icingastatus livestatus mainlog notification statusdata > > % Start Apache and Icinga 2 > > # service apache22 start > # service icinga2 start > > % Check /var/log/icinga2/icinga2.log and error.log for any errors > % Browse to http://localhost/icinga > % Log in as icingaadmin > > % Read http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc > > % (Hopefully) have fun! > > Please share your experience with me. :) # 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 # make [...] -- Found FLEX: /usr/bin/flex version 2.5.4 (Required is at least version "2.5.31") [...] [ 3%] [FLEX][class_lexer] Building scanner with flex /usr/bin/flex 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 Depending on flex from ports (flex-2.5.39_1) fixes this from me. .if ${OSVERSION} < 1000033 BUILD_DEPENDS+= flex>=2.5.31:${PORTSDIR}/textproc/flex CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex CXXFLAGS+= -I${LOCALBASE}/include/flex .endif MfG CoCo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53A2EAD8.40702>