mirror of
https://github.com/bashclub/zamba-lxc-toolbox
synced 2025-08-16 10:42:25 +00:00
f
This commit is contained in:
parent
0e531d2982
commit
97b6fdeec9
@ -93,7 +93,6 @@ object Influxdb2Writer "influxdb2-writer" {
|
|||||||
auth_token = "${INFLUX_ICINGA_TOKEN}"
|
auth_token = "${INFLUX_ICINGA_TOKEN}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/icinga2/zones.conf <<EOF
|
cat > /etc/icinga2/zones.conf <<EOF
|
||||||
object Endpoint "$(hostname -f)" { host = "127.0.0.1" }
|
object Endpoint "$(hostname -f)" { host = "127.0.0.1" }
|
||||||
object Zone "master" { endpoints = [ "$(hostname -f)" ] }
|
object Zone "master" { endpoints = [ "$(hostname -f)" ] }
|
||||||
@ -245,8 +244,6 @@ if ! mysql -e "use icingadb; show tables;" | grep -q "icingadb_schema_migration"
|
|||||||
echo "[INFO] Importiere IcingaDB-Schema..."
|
echo "[INFO] Importiere IcingaDB-Schema..."
|
||||||
mysql icingadb < "$ICINGADB_SCHEMA"
|
mysql icingadb < "$ICINGADB_SCHEMA"
|
||||||
fi
|
fi
|
||||||
icinga2 feature enable icingadb api influxdb2-writer
|
|
||||||
|
|
||||||
cat > /etc/icingaweb2/config.ini <<EOF
|
cat > /etc/icingaweb2/config.ini <<EOF
|
||||||
[global]
|
[global]
|
||||||
show_stacktraces = "0"
|
show_stacktraces = "0"
|
||||||
@ -285,18 +282,23 @@ resource = "director_db"
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p /etc/icingaweb2/modules/perfdatagraphs
|
mkdir -p /etc/icingaweb2/modules/perfdatagraphs
|
||||||
cat > /etc/icingaweb2/modules/perfdatagraphs/config.ini <<EOF
|
cat > /etc/icingaweb2/modules/perfdatagraphsinfluxdbv2/config.ini <<EOF
|
||||||
[influxdb2]
|
[influx]
|
||||||
backend = "influxdb2"
|
api_url = "http://127.0.0.1:8086"
|
||||||
url = "http://127.0.0.1:8086"
|
api_token = "${INFLUX_ICINGA_TOKEN}"
|
||||||
token = "${INFLUX_ICINGA_TOKEN}"
|
api_org = "icinga"
|
||||||
organization = "icinga"
|
api_bucket = "icinga"
|
||||||
bucket = "icinga"
|
api_tls_insecure = "1"
|
||||||
|
|
||||||
[default]
|
|
||||||
backend = "influxdb2"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat > /etc/icingaweb2/modules/perfdatagraphs/config.ini << EOF
|
||||||
|
[perfdatagraphs]
|
||||||
|
default_timerange = "PT12H"
|
||||||
|
default_backend = "InfluxDBv2"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
icinga2 feature enable icingadb api influxdb2-writer perfdata
|
||||||
|
|
||||||
chown -R grafana:grafana /var/lib/grafana/grafana.db
|
chown -R grafana:grafana /var/lib/grafana/grafana.db
|
||||||
|
|
||||||
echo "[INFO] Icinga Web 2 Module werden in korrekter Reihenfolge aktiviert."
|
echo "[INFO] Icinga Web 2 Module werden in korrekter Reihenfolge aktiviert."
|
||||||
@ -305,6 +307,7 @@ icingacli module enable incubator
|
|||||||
icingacli module enable director
|
icingacli module enable director
|
||||||
icingacli module enable icingadb
|
icingacli module enable icingadb
|
||||||
icingacli module enable perfdatagraphs
|
icingacli module enable perfdatagraphs
|
||||||
|
icingacli module enable perfdatagraphsinfluxdbv2
|
||||||
|
|
||||||
echo "[INFO] Alle Services werden neu gestartet, um die finale Konfiguration zu laden."
|
echo "[INFO] Alle Services werden neu gestartet, um die finale Konfiguration zu laden."
|
||||||
systemctl restart mariadb
|
systemctl restart mariadb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user