Find file History
Latest commit a8908db Jan 20, 2017 @dnsmichi dnsmichi Fix workaround for Vagrant bug #9096
fixes #19

README.md

Icinga 2 Elastic Vagrant Box

  • Elastic Stack 5.x
    • Elasticsearch
    • Logstash
    • Kibana
    • Beats
  • Icinga 2 Core
  • Icinga Web 2

User Interfaces

GUI Url Credentials
Icinga Web 2 http://192.168.33.7/icingaweb2 icingaadmin/icinga
Kibana http://192.168.33.7:5601 -

Icinga 2 API

Access https://192.168.33.7:5665/v1/objects/hosts using the credentials root/icinga. More details in the documentation.

Requirements

Each Vagrant box setup requires at least 2 Cores and 1 GB RAM. The required resources are automatically configured during the vagrant up run.

One of these virtualization providers:

Windows users require additionally

You can use init.sh (Linux) and init.bat (Windows) to check the pre-requisites.

Virtualbox Provider

If Virtualbox is installed, this will be enabled by default.

Parallels Provider

You'll need to install the vagrant-paralells plugin first:

$ vagrant plugin install vagrant-parallels

Installation

You can only do vagrant up in a box directory. Verify that by checking for the existance of the Vagrantfile file in the current directory.

$ ls -la Vagrantfile
-rw-------. 1 michi michi 1,4K 28. Aug 12:11 Vagrantfile

Vagrant Commands

  • vagrant up starts all vms for this box setup
  • vagrant halt stops all vms for this box setup
  • vagrant provision updates packages/resets configuration for all vms
  • vagrant ssh puts you into an ssh shell with login vagrant (Tip: Use sudo -i to become root)

Note

Multi-VM boxes require the hostname for vagrant ssh like so: vagrant ssh icinga2b. That works in a similar fashion for other sub commands.

If your box is broken, you can destroy it using vagrant destroy. Next vagrant up run will use the already imported base box, re-running the provisioner to install the packages and configuration.

Documentation

The Icinga 2 documentation is located at http://docs.icinga.com The Elastic documentation is located at https://www.elastic.co/guide/index.html

Updates

Vagrant update

On local config change (git pull for this repository).

$ pwd
$ git pull
$ git log
$ vagrant provision