Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
files
hiera
manifests
.gitignore
README.md
Vagrantfile
hiera.yaml

README.md

Icinga 2 InfluxDB Vagrant Box

  • Icinga 2 Core
    • Icinga 2 API
  • Icinga Web 2
  • InfluxDB
  • Grafana

Icinga 2 Grafana with InfluxDB

Run Vagrant:

$ cd icinga2x-influxdb && vagrant up

User Interfaces

GUI Url Credentials
Icinga Web 2 http://192.168.33.8/icingaweb2 icingaadmin/icinga
Grafana http://192.168.33.8:8004 admin/admin

Icinga 2 API

Access https://192.168.33.8: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

Updates

Vagrant update

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

$ pwd
$ git pull
$ git log
$ vagrant provision