From owner-freebsd-ports@FreeBSD.ORG Thu Jun 19 13:52:59 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E14B9FDB for ; Thu, 19 Jun 2014 13:52:58 +0000 (UTC) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 77DFE2302 for ; Thu, 19 Jun 2014 13:52:58 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id CEC1E8B143B; Thu, 19 Jun 2014 15:52:57 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -100.929 X-Spam-Level: X-Spam-Status: No, score=-100.929 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=-0.006, TW_VP=0.077, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id F5BiGUr-+fjc; Thu, 19 Jun 2014 15:52:56 +0200 (CEST) Received: from [192.168.100.30] (p54B0B2A7.dip0.t-ipconnect.de [84.176.178.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id 07FEC8B141C; Thu, 19 Jun 2014 15:52:56 +0200 (CEST) Message-ID: <53A2EAD8.40702@executive-computing.de> Date: Thu, 19 Jun 2014 15:51:20 +0200 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Lars Engels Subject: Re: [CFT]: net-mgmt/icinga2 References: <20140618143633.GA53663@e-new.0x20.net> In-Reply-To: <20140618143633.GA53663@e-new.0x20.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 13:52:59 -0000 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