Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2014 16:36:33 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        ports@FreeBSD.org
Subject:   [CFT]: net-mgmt/icinga2
Message-ID:  <20140618143633.GA53663@e-new.0x20.net>

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

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



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