Icinga

Konfigurationsübersicht Icinga-Web

Wo sind meine Konfigurationsdateien?

Mit Icinga 1.7 hat sich der Platz von einigen Konfigurationsdateien erneut geändert, um die Pflege für Benutzer, Packetierer und Entwickler gleichermaßen zu vereinfachen. Die von Icinga-Web bereitgestellten Konfigurationsdateien stehen weiterhin unter app/config, aber Site-spezifische, die vorher im gleichen Ordner zu finden waren, sind nun in den Web-Konfigurationsordner gewandert (per Default etc/conf.d), der bei Aktualisierungen nicht überschrieben wird. Der Ordner kann während der Installation mit Hilfe von --with-conf-dir (bzw. --with-conf-folder Icinga <= 1.6.x) geändert werden. Bitte beachten Sie, dass sich - bedingt durch den neuen Ablageort - der Dateiname geändert hat. Die Kennzeichnung "site." ist entfallen, so dass die Namen nun identisch zu denen in app/config sind.

Icinga-Web arbeitet mit Modulen und jedes Modul hat seine eigene Konfiguration. Das gilt ebenfalls für die Libraries. Wenn Sie weitere Informationen zu den Cronk-Libraries benötigen, schauen Sie in app/modules/Cronks/lib (für js in app/modules/Cronks/lib/js).

Ein Modul von Icinga-Web ist wie folgt aufgebaut:

 tree -d -L 1 app/modules/AppKit/
 app/modules/AppKit/
 |-- actions
 |-- config
 |-- lib
 |-- models
 |-- templates
 |-- validate
 |-- views

Index

Tabelle 6.1. Konfigurationsdateien
Dateiname Ablageort Bemerkung
access.xml app/modules/Api/config/ Controls commands and where Icinga commands goes to
auth.xml app/modules/AppKit/config/ Authentication configuration
cronks.xml app/modules/Cronks/config/ System cronk and categories which are not changeable by users
databases.xml app/config/ Upgrade safe database connections
factories.xml app/config/ Agavi system config, storage and session configuration
icinga.xml app/config/ Icinga settings, e.g. version and prefixes / version name
logging.xml app/config/ Disable log levels or write new logfiles
module_appkit.xml app/modules/AppKit/config/ Overwrite settings for AppKit module (ajax timeout, SQL query logging)
module_cronks.xml app/modules/Cronks/config/ Overwrite settings for Cronks module
module_reporting.xml app/modules/Reporting/config/ Overwrite settings for Reporting (multiple JasperServer ...)
module_web.xml app/modules/Web/config/ Overwrite setting for Web module
settings.xml app/config/ Change agavi core settings (Title, availability, debug-mode, ...)
sla.xml app/modules/Api/config/ SLA settings for the provider (Only used by tackle view)
translation.xml app/config/ Default language, date and time formats and settings

Globale Konfiguration

app/config

Hier finden Sie die globalen Konfigurationsdateien für z.B. die Web-Session, den Icinga-Web-Pfad und die Datenbankinformationen.

Die wichtigsten Dateien:

Fehlersuche

Icinga-Web-Zeitzone

Beispiel: Ändern der Zeitzone für Icinga-Web

Wenn die Zeitzone von Icinga-Web von Ihrer lokalen Zeitzone abweicht, überprüfen Sie bitte den Parameter "date.timezone" in app/modules/AppKit/config/module.xml (z.B. 'Europe/Berlin')

#> vi app/modules/AppKit/config/module.xml
<ae:parameter name="date.timezone">GMT</ae:parameter>

Modul-Konfiguration:

Benutzerdefinierte Konfiguration

Bitte beachten:

Wenn Sie Konfigurationsdateien ändern oder erstellen, denken Sie bitte an folgendes:

[Anmerkung] Anmerkung

Nach dem Ändern von Konfigurationsdateien leeren Sie bitte den Cache!

 #> rm -rf app/cache/config/*.php

oder

 #> /usr/local/icinga-web/bin/clearcache.sh

Benötigen Sie weitere Informationen? Schauen Sie bitte in unserem Development Wiki.