From c09508212a008ef157f35b1b7f5dca5fe435afeb Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 4 Jun 2013 14:27:13 +0200 Subject: [PATCH] Vagrant: Add MK Livestatus refs #4217 --- .vagrant-puppet/manifests/default.pp | 17 +++++++++++++++++ .../templates/mk-livestatus.cfg.erb | 6 ++++++ README.md | 13 +++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .vagrant-puppet/modules/mk-livestatus/templates/mk-livestatus.cfg.erb diff --git a/.vagrant-puppet/manifests/default.pp b/.vagrant-puppet/manifests/default.pp index 72e04bcd0..58fcec798 100644 --- a/.vagrant-puppet/manifests/default.pp +++ b/.vagrant-puppet/manifests/default.pp @@ -195,3 +195,20 @@ cmmi { 'icinga-plugins': make => 'make && make install', require => User['icinga'] } + +cmmi { 'mk-livestatus': + url => 'http://mathias-kettner.de/download/mk-livestatus-1.2.2p1.tar.gz', + output => 'mk-livestatus-1.2.2p1.tar.gz', + flags => '--prefix=/usr/local/icinga-mysql --exec-prefix=/usr/local/icinga-mysql', + creates => '/usr/local/icinga-mysql/lib/mk-livestatus', + make => 'make && make install', + require => Cmmi['icinga-mysql'] +} + +file { '/usr/local/icinga-mysql/etc/modules/mk-livestatus.cfg': + content => template('mk-livestatus/mk-livestatus.cfg.erb'), + owner => 'icinga', + group => 'icinga', + require => Cmmi['mk-livestatus'], + notify => [Service['icinga-mysql'], Service['ido2db-mysql']] +} diff --git a/.vagrant-puppet/modules/mk-livestatus/templates/mk-livestatus.cfg.erb b/.vagrant-puppet/modules/mk-livestatus/templates/mk-livestatus.cfg.erb new file mode 100644 index 000000000..f61ffc001 --- /dev/null +++ b/.vagrant-puppet/modules/mk-livestatus/templates/mk-livestatus.cfg.erb @@ -0,0 +1,6 @@ +define module{ + module_name mklivestatus + path /usr/local/icinga-mysql/lib/mk-livestatus/livestatus.o + module_type neb + args /usr/local/icinga-mysql/var/rw/live + } diff --git a/README.md b/README.md index bb917ab89..f1b180655 100644 --- a/README.md +++ b/README.md @@ -92,3 +92,16 @@ Connect to the **icinga mysql database** using the following command: Access the **Classic UI** (CGIs) via [localhost:8080/icinga-pgsql](http://localhost:8080/icinga-pgsql). For **logging into** the Icinga classic web interface use user *icingaadmin* with password *icinga*. + +#### MK Livestatus + +MK Livestatus is added to the Icinga installation using a MySQL database. + +**Installation path**: +* `/usr/local/icinga-mysql/bin/unixcat` +* `/usr/local/icinga-mysql/lib/mk-livestatus/livecheck` +* `/usr/local/icinga-mysql/lib/mk-livestatus/livestatus.o` +* `/usr/local/icinga-mysql/etc/modules/mk-livestatus.cfg` +* `/usr/local/icinga-mysql/var/rw/live` + +