From owner-freebsd-ports@FreeBSD.ORG Wed Jun 18 14:36:37 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 7BD495A8 for ; Wed, 18 Jun 2014 14:36:37 +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 3A6F02B18 for ; Wed, 18 Jun 2014 14:36:37 +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 E682C6A6027 for ; Wed, 18 Jun 2014 16:36:33 +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 s5IEaXtw095868 for ; Wed, 18 Jun 2014 16:36:33 +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 s5IEaXk4095218 for ports@FreeBSD.org; Wed, 18 Jun 2014 16:36:33 +0200 (CEST) (envelope-from lars) Date: Wed, 18 Jun 2014 16:36:33 +0200 From: Lars Engels To: ports@FreeBSD.org Subject: [CFT]: net-mgmt/icinga2 Message-ID: <20140618143633.GA53663@e-new.0x20.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p4 User-Agent: Mutt/1.5.23 (2014-03-12) 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: Wed, 18 Jun 2014 14:36:37 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 # 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=20 % Install www/apache22 % Configure Apache and Icinga Classic Web # cp /usr/local/share/examples/icinga/apache22/icinga.conf-sample /usr/loca= l/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=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 % Create a basic auth file=20 # htpasswd -c -s /usr/local/etc/icinga/htpasswd.users icingaadmin (enter some password) % Enable Apache and Icinga 2 # sysrc apache22_enable=3DYES # sysrc icinga2_enable=3DYES % 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. :) Lars --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQF8BAEBCgBmBQJToaPxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tx4QIAKl/ebC2bPmpdu8uuVd1Kj30 2UhNoxaHeK1ODPdWuqiHS73Xtm22NWTdb2LPBjJSC711fLr1mPL4P3a/19N8QsCU vON+PvVKCl953GenggOnCmmaA1X0Ue4VP42PcdG+e2dGjBRfctCrg6eHh8/9lVY7 FuFnDWI3HCF6icI5NUVxBsdTQH/0NoaaAHBEqn5zs4nIPmc8Zuo7I4R93XRVWlkZ X7USTtTFvxWUTBZ9iwJbiJFX8o3XSDxaaOmqVg8TaY6LzzptUnetIdRglCOM41Hs K4VZDMy723XUn4RnAThceWanpZdJbx3gegwxK6WZSO9OT1+CR7KOL7BCa4goEnQ= =V4sK -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--