Icinga2 mit Grafana und Influxdb

Aus xinux.net
Version vom 2. Mai 2017, 14:41 Uhr von Janning (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Vorraussetzungen= *Funktionierende Installation Icinga2 mit Icingaweb2 =InfluxDB= *apt-get install influxdb influxdb-client <pre>…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Vorraussetzungen

InfluxDB

  • apt-get install influxdb influxdb-client
root@localhost:~# influx
Connected to http://localhost:8086 version 0.13.0
InfluxDB shell version: 0.13.0
> create database icinga2;
> create user icinga2 with password ‘geheim’;
> grant all on icinga2 to icinga2;
  • vi /etc/icinga2/features-enabled/influxdb.conf
    object InfluxdbWriter "influxdb" {
    host = "127.0.0.1"
    port = 8086
    database = "icinga2"
    username = "icinga2"
    password = "geheim"
    enable_send_thresholds = true
    enable_send_metadata = true
    host_template = {
    measurement = “$host.check_command$”
    tags = {
    hostname = “$host.name$”
    }
    }

    service_template = {
    measurement = “$service.check_command$”
    tags = {
    hostname = “$host.name$”
    service = “$service.name$”
    }
    }

    }