{"id":445,"date":"2024-09-30T14:49:28","date_gmt":"2024-09-30T12:49:28","guid":{"rendered":"https:\/\/whoami.lausitz-event.info\/?p=445"},"modified":"2025-07-31T08:38:36","modified_gmt":"2025-07-31T06:38:36","slug":"icinga2-debian-12-installation","status":"publish","type":"post","link":"https:\/\/whoami.lausitz-event.info\/?p=445","title":{"rendered":"Icinga2 Debian 12 Installation"},"content":{"rendered":"<h2>Installation Icinga per Hand<\/h2>\n\n<h3>Vorbereitung der DB<\/h3>\n\n<pre><code class=\"language-bash\">apt install mariadb-server -y\nmysql_secure_installation<\/code><\/pre>\n\n<p>!!! danger \"Wichtig\"\nBei der Frage, ob f\u00fcr root die Unix Authentifizierung aktiviert werden soll, unbedingt y f\u00fcr Ja eingeben.<\/p>\n\n<pre><code class=\"language-bash\">mysql<\/code><\/pre>\n\n<pre><code class=\"language-sql\">-- Erstellen der Icinga-DB\ncreate database icingadb ;\ncreate user 'icingadb'@'localhost' identified by 'icingadb';\ngrant all privileges on icingadb.* to 'icingadb'@'localhost';\n\n-- Erstellen der Icinga-WebDB\ncreate database icingaweb2;\ncreate user 'icingaweb2'@'localhost' identified by 'icingaweb2';\ngrant all privileges on icingaweb2.* to 'icingaweb2'@'localhost';\n\n-- Privilegien neu laden und beenden\nflush privileges;\nexit;<\/code><\/pre>\n\n<h3>Repo installieren<\/h3>\n\n<pre><code class=\"language-bash\">apt update\napt -y install apt-transport-https wget gnupg\n\nwget -O - https:\/\/packages.icinga.com\/icinga.key | gpg --dearmor -o \/usr\/share\/keyrings\/icinga-archive-keyring.gpg\n\nDIST=$(awk -F\"[)(]+\" '\/VERSION=\/ {print $2}' \/etc\/os-release); \\\n echo \"deb [signed-by=\/usr\/share\/keyrings\/icinga-archive-keyring.gpg] https:\/\/packages.icinga.com\/debian icinga-${DIST} main\" &gt; \\\n \/etc\/apt\/sources.list.d\/${DIST}-icinga.list\n echo \"deb-src [signed-by=\/usr\/share\/keyrings\/icinga-archive-keyring.gpg] https:\/\/packages.icinga.com\/debian icinga-${DIST} main\" &gt;&gt; \\\n \/etc\/apt\/sources.list.d\/${DIST}-icinga.list\n\napt update\n\napt install icinga2 -y<\/code><\/pre>\n\n<p>!!! info \"Validierung der Konfiguration\"\nAn dieser Stelle (und auch sp\u00e4ter) kann die Konfiguration gepr\u00fcft werden.<\/p>\n\n<pre><code class=\"language-bash\">    icinga2 daemon -C<\/code><\/pre>\n\n<h3>Installation der Standard Plugins<\/h3>\n\n<pre><code class=\"language-bash\">apt install monitoring-plugins -y<\/code><\/pre>\n\n<h3>Aktivierung der API<\/h3>\n\n<pre><code class=\"language-bash\">icinga2 api setup<\/code><\/pre>\n\n<p>Danach Neustart von icinga<\/p>\n\n<pre><code class=\"language-bash\">systemctl restart icinga2<\/code><\/pre>\n\n<h3>Aufsetzen von ICINGA-DB<\/h3>\n\n<p>!!! info\nDas ist ein neueres Feature, soll die Last von der bisherigen IDO-DB nehmen.<\/p>\n\n<h4>Installation Redis-Package und Start des Dienstes<\/h4>\n\n<pre><code class=\"language-bash\">apt install icingadb-redis -y\n# systemctl enable --now icingadb-redis # Offenbar hat sich der Name ge\u00e4ndert daher ...\nsystemctl enable --now icingadb-redis-server<\/code><\/pre>\n\n<h4>Aktivieren des ICINGA-DB-Features<\/h4>\n\n<pre><code class=\"language-bash\">icinga2 feature enable icingadb\nicinga2 feature list\nsystemctl restart icinga2.service<\/code><\/pre>\n\n<h4>Installieren des ICINGA-DB Daemons<\/h4>\n\n<p>!!! info\nDer <code><code>ICINGA-DB-Daemon<\/code><code>  synchronisiert die Monitoring-Daten zwischen <\/code><code>REDIS<\/code><\/code> und Datenbank.<\/p>\n\n<h5>Paket installieren<\/h5>\n\n<pre><code class=\"language-bash\">apt install icingadb -y<\/code><\/pre>\n\n<h5>Einrichtung<\/h5>\n\n<p>Zuerst Datenbank und Nutzer einrichten (siehe SQL am Anfang).<\/p>\n\n<p>Danach das Schema laden.<\/p>\n\n<pre><code class=\"language-bash\">mysql -u root icingadb &lt;\/usr\/share\/icingadb\/schema\/mysql\/schema.sql<\/code><\/pre>\n\n<p>Anpassung der Konfiguration <code><code>\/etc\/icingadb\/config.yml<\/code><\/code><\/p>\n\n<pre><code class=\"language-yaml\">database:\n  type: mysql\n  host: localhost\n  database: icingadb\n  user: icingadb\n  password: xxxxxxxxxxx\nredis:\n  host: localhost\n  port: 6380\nlogging:\n  options:\nretention:\n  history-days: 180\n  sla-days: 180\n  options:<\/code><\/pre>\n\n<p>Zum Abschluss Start des Dienstes<\/p>\n\n<pre><code class=\"language-bash\">systemctl enable --now icingadb<\/code><\/pre>\n\n<h4>Installation DB WEB<\/h4>\n\n<p>!!! warning\nDie vorherige Installation von <code><code>php-fpm<\/code><code> ist wichtig, da sonst bei der Installation von <\/code><code>icingadb-web<\/code><\/code> auch\n<code><code>php<\/code><code> installiert wird, welches auch <\/code><code>apache2<\/code><\/code> als Abh\u00e4ngigkeit mit bringt.<\/p>\n\n<pre><code class=\"language-bash\">apt install php-fpm nginx -y\napt install icingadb-web -y<\/code><\/pre>\n\n<!-- !!! warning \"Kompatibilit\u00e4t mit PHP 8.2 (Sep. 2023) - Relevanz Pr\u00fcfen\"\n    Scheinbar ist die Kompatibilit\u00e4t zu PHP 8.2 noch nicht ganz gegeben.\n    Es gibt Warnungen beim Start von  `<code>icingacli<\/code>`:\n    ```bash\n    root@www:~# icingacli help\n    PHP Deprecated:  Creation of dynamic property Icinga\\Clicommands\\HelpCommand::$trace is deprecated in \/usr\/share\/php\/Icinga\/Cli\/Command.php on line 61\n    Deprecated: Creation of dynamic property Icinga\\Clicommands\\HelpCommand::$trace is deprecated in \/usr\/share\/php\/Icinga\/Cli\/Command.php on line 61\n    PHP Deprecated:  Creation of dynamic property Icinga\\Cli\\Documentation::$app is deprecated in \/usr\/share\/php\/Icinga\/Cli\/Documentation.php on line 17\n    ...\n    ```\n    Ein Abschalten der Warnungen in der `<code>php.ini<\/code><code> geht nicht, da <\/code><code>icinga<\/code>` diese Einstellungen \u00fcberschreibt.\n    `<code>\/usr\/share\/php\/Icinga\/Application\/ApplicationBootstrap.php<\/code>` und \n    `<code>\/usr\/share\/php\/Icinga\/Application\/webrouter.php<\/code>`\n    ```php\n    # Diese Zeile auskommentieren...\n    error_reporting(E_ALL | E_STRICT);\n    # ... und die hier erg\u00e4nzen:\n    error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);\n    ```\n-->\n\n<h3>Installation Icinga Web<\/h3>\n\n<h4>Erstellen einer Nginx Konfigurationsdatei<\/h4>\n\n<pre><code class=\"language-bash\">icingacli setup config webserver nginx --document-root \/usr\/share\/icingaweb2\/public &gt; \/etc\/nginx\/conf.d\/icinga.conf<\/code><\/pre>\n\n<p>Jetzt noch default Config von nginx l\u00f6schen:<\/p>\n\n<p><code class=\"language-nginx\">rm -rf \/etc\/nginx\/sites-enabled\/default<\/code><\/p>\n\n<p>Die Datei ist noch zu folgendem Stand anzupassen:<\/p>\n\n<pre><code class=\"language-nginx\">server {\n  listen *:80 default_server;\n  server_name _;\n\n  # nagvis inkl. php\n  location \/nagvis {\n    alias \/usr\/share\/nagvis\/share;\n    location ~ \\.php$ {\n      include snippets\/fastcgi-php.conf;\n      fastcgi_param SCRIPT_FILENAME $request_filename;\n      fastcgi_pass unix:\/run\/php\/php-fpm.sock;\n    }\n  }\n\n  ### INSTALLER START\n  location ~ ^\/icingaweb2\/index\\.php(.*)$ {\n    #fastcgi_pass 127.0.0.1:9000;\n    fastcgi_pass unix:\/run\/php\/php-fpm.sock ;\n    fastcgi_index index.php;\n    include fastcgi_params;\n    fastcgi_param SCRIPT_FILENAME \/usr\/share\/icingaweb2\/public\/index.php;\n    fastcgi_param ICINGAWEB_CONFIGDIR \/etc\/icingaweb2;\n    fastcgi_param REMOTE_USER $remote_user;\n  }\n\n  location ~ ^\/icingaweb2(.+)? {\n    alias \/usr\/share\/icingaweb2\/public;\n    index index.php;\n    try_files $1 $uri $uri\/ \/icingaweb2\/index.php$is_args$args;\n  }\n  ###INSTALLER END\n}<\/code><\/pre>\n\n<p>Neustart Nginx<\/p>\n\n<pre><code class=\"language-bash\">systemctl restart nginx<\/code><\/pre>\n\n<h4>Erstellung des Setup-Token<\/h4>\n\n<p>Den Token in einen Texteditor kopieren. Dieser wird dann sp\u00e4ter w\u00e4hrend der Einrichtung in der Weboberfl\u00e4che ben\u00f6tigt.<\/p>\n\n<pre><code class=\"language-bash\">icingacli setup token create\nicingacli setup token show<\/code><\/pre>\n\n<h4>Erstellen der DB<\/h4>\n\n<p>Siehe sql am Anfang<\/p>\n\n<h4>Webinstaller<\/h4>\n\n<p>Vorab das Log-Verzeichnis anlegen<\/p>\n\n<pre><code class=\"language-bash\">chown www-data \/var\/log\/icingaweb2\/<\/code><\/pre>\n\n<pre><code class=\"language-bash\">apt install php-imagick -y<\/code><\/pre>\n\n<ul>\n    <li>Aufruf von http...\/icingaweb2\/setup\/<\/li>\n    <li><strong>Modules<\/strong> Nur <em>icingadb<\/em> kein <em>Monitoring<\/em><\/li>\n    <li><strong>Requirements<\/strong> Alles ok<\/li>\n    <li><strong>Authentication<\/strong>\n<ul>\n    <li>Type: Database<\/li>\n    <li><strong>Database-Ressource<\/strong><\/li>\n    <li>DB-Name: icingaweb2<\/li>\n<\/ul>\n<\/li>\n    <li><strong>Authentication-Backend<\/strong>\n<ul>\n    <li>Backend Name: icingaweb2 (Automatisch)<\/li>\n<\/ul>\n<\/li>\n    <li><strong>Administration<\/strong> Erstellung des Admin-Nutzers<\/li>\n    <li><strong>Application Configuration<\/strong>\n<ul>\n    <li>Logging-Type: File (\/var\/log\/icingaweb2\/icingaweb2.log)<\/li>\n<\/ul>\n<\/li>\n    <li><strong>Icinga DB Ressource<\/strong>\n<ul>\n    <li>Database Name: icingadb<\/li>\n<\/ul>\n<\/li>\n    <li><strong>Icinga DB Redis<\/strong>\n<ul>\n    <li>Redis Host: localhost<\/li>\n<\/ul>\n<\/li>\n    <li><strong>Icinga 2 API<\/strong>\n<ul>\n    <li>Host: localhost<\/li>\n    <li>API Username: root (siehe \/etc\/icinga2\/conf.d\/api-users.conf)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n<h4>Director Installation<\/h4>\n\n<p>GIT-Client installieren<\/p>\n\n<pre><code class=\"language-bash\">apt install git -y<\/code><\/pre>\n\n<p>Datenbank anlegen<\/p>\n\n<pre><code class=\"language-bash\">mysql -e \"CREATE DATABASE director CHARACTER SET 'utf8';\n  CREATE USER director@localhost IDENTIFIED BY 'director';\n  GRANT ALL ON director.* TO director@localhost;\"<\/code><\/pre>\n\n<p>Icingaweb2 Modul installieren<\/p>\n\n<pre><code class=\"language-bash\">cd \/usr\/share\/icingaweb2\/modules\ngit clone https:\/\/github.com\/Icinga\/icingaweb2-module-director.git director\nicingacli module enable director<\/code><\/pre>\n\n<p>MySQL Schema importieren<\/p>\n\n<pre><code class=\"language-bash\">mysql -u director -pdirector director &lt; \/usr\/share\/icingaweb2\/modules\/director\/schema\/mysql.sql<\/code><\/pre>\n\n<p>User anlegen<\/p>\n\n<pre><code class=\"language-bash\">useradd -r -g icingaweb2 -d \/var\/lib\/icingadirector -s \/bin\/false icingadirector\ninstall -d -o icingadirector -g icingaweb2 -m 0750 \/var\/lib\/icingadirector<\/code><\/pre>\n\n<p>Service installieren und aktivieren<\/p>\n\n<pre><code class=\"language-bash\">MODULE_PATH=\/usr\/share\/icingaweb2\/modules\/director\ncp \"${MODULE_PATH}\/contrib\/systemd\/icinga-director.service\" \/etc\/systemd\/system\/\nsystemctl daemon-reload\nsystemctl enable --now icinga-director.service<\/code><\/pre>\n\n<p>Installation Incubator<\/p>\n\n<pre><code class=\"language-bash\">MODULE_NAME=incubator\nMODULE_VERSION=v0.22.0\nREPO=\"https:\/\/github.com\/Icinga\/icingaweb2-module-${MODULE_NAME}\"\nMODULES_PATH=\"\/usr\/share\/icingaweb2\/modules\"\ngit clone ${REPO} \"${MODULES_PATH}\/${MODULE_NAME}\" --branch \"${MODULE_VERSION}\"\nicingacli module enable \"${MODULE_NAME}\"<\/code><\/pre>\n\n<p>!!! Info\nJetzt den Rechner neu starten. Zum Schluss die Konfiguration \u00fcber die Webseite beenden.<\/p>\n\n<p>Nach dem Neustart einen Browser mit der Icinga2 URL aufrufen <a href=\"http:\/\/HOSTNAME\/icingaweb2\/\">http:\/\/HOSTNAME\/icingaweb2\/<\/a><\/p>\n\n<p>Dort hinein den Token aus der Textdatei kopieren.<\/p>\n\n<p><img decoding=\"async\" src=\"config_start.png\" alt=\"Startseite Konfiguration\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_module.png\" alt=\"Module Konfiguration\" \/><\/p>\n\n<p>Sollte in den Installationsschritten alles beachtet worden sein, so m\u00fcssten hier alle Checks ein deutliches Gr\u00fcn aufweisen. :nerd_face:<\/p>\n\n<p><img decoding=\"async\" src=\"config_check.png\" alt=\"Check Konfiguration\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_user_db.png\" alt=\"Konfiguration User Datenbank\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_user_db_check.png\" alt=\"Einstellungen pr\u00fcfen\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_icingaweb2.png\" alt=\"Admin User anlegen\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_admin.png\" alt=\"Nennen wir ihn Admin\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_weiter.png\" alt=\"Und weiter gehts\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_icingadb.png\" alt=\"Konfiguration IcingaDB\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_icingadb_check.png\" alt=\"Konfiguration Check IcingaDB\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_redis.png\" alt=\"Konfiguration Redis\" \/><\/p>\n\n<p>Die Zugangsdaten f\u00fcr den API User sind unter:<\/p>\n\n<pre><code class=\"language-bash\">cat \/etc\/icinga2\/conf.d\/api-users.conf<\/code><\/pre>\n\n<p><img decoding=\"async\" src=\"config_api.png\" alt=\"Konfiguration API\" \/><\/p>\n\n<p>So soll es aussehen, dann klappts auch mit dem Monitoring.\n<img decoding=\"async\" src=\"config_fertsch.png\" alt=\"Final\" \/><\/p>\n\n<p>Nach der ersten Anmeldung muss noch der Import f\u00fcr die IcingaDB ausgef\u00fchrt werden.\n<img decoding=\"async\" src=\"config_import.png\" alt=\"Import\" \/><\/p>\n\n<p>Im n\u00e4chsten Step aus dem Dropdown Men\u00fc die <strong>Icingadb<\/strong> und das Datenbankschema erstellen ausw\u00e4hlen.<\/p>\n\n<p><img decoding=\"async\" src=\"config_kick.png\" alt=\"Kickstart\" \/><\/p>\n\n<p><img decoding=\"async\" src=\"config_rollout.png\" alt=\"Rollout der \u00c4nderungen\" \/><\/p>\n\n<h4>Graphite Installation<\/h4>\n\n<p>Installation Docker<\/p>\n\n<pre><code class=\"language-bash\"># Add Docker's official GPG key:\nsudo apt update\nsudo apt install ca-certificates curl gnupg\nsudo install -m 0755 -d \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\nsudo chmod a+r \/etc\/apt\/keyrings\/docker.gpg<\/code><\/pre>\n\n<pre><code class=\"language-bash\"># Add the repository to Apt sources:\necho \\\n  \"deb [arch=\"$(dpkg --print-architecture)\" signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/debian \\\n  \"$(. \/etc\/os-release &amp;&amp; echo \"$VERSION_CODENAME\")\" stable\" | \\\n  sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null\nsudo apt update<\/code><\/pre>\n\n<pre><code class=\"language-bash\">sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code><\/pre>\n\n<p>Docker pull Graphite<\/p>\n\n<pre><code class=\"language-bash\">docker pull graphiteapp\/graphite-statsd<\/code><\/pre>\n\n<p>Start Docker Container<\/p>\n\n<pre><code class=\"language-bash\">docker run -d --name graphite --restart=always -p 8090:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125\/udp -p 8126:8126 graphiteapp\/graphite-statsd<\/code><\/pre>\n\n<p>Automatischer Start Docker Container<\/p>\n\n<p>Hier muss noch das Start Script f\u00fcr den automatischen Start des Containers rein \/etc\/systemd\/system\/...<\/p>\n\n<p>Installation Icingaweb2 Modul<\/p>\n\n<pre><code class=\"language-bash\">cd \/usr\/share\/icingaweb2\/modules\ngit clone https:\/\/github.com\/Icinga\/icingaweb2-module-graphite.git graphite<\/code><\/pre>\n\n<p>Installation der icinga-php-library V.0.13.0<\/p>\n\n<pre><code class=\"language-bash\">apt install icinga-php-library<\/code><\/pre>\n\n<p>Modul Graphite Backend konfigurieren<\/p>\n\n<p><img decoding=\"async\" src=\"graphite_backend.png\" alt=\"Graphite Backend\" \/><\/p>\n\n<p><strong>\/etc\/icinga2\/features-enabled<\/strong><\/p>\n\n<pre><code class=\"language-bash\">object GraphiteWriter \"graphite\" {\n  host = \"192.0.2.42\"\n  port = 2003\n  enable_send_thresholds = true\n}<\/code><\/pre>\n\n<h4>Zertifikatsmonitoring<\/h4>\n\n<p>Datenbank vorbereiten<\/p>\n\n<pre><code class=\"language-bash\">create database x509;\nGRANT CREATE, SELECT, INSERT, UPDATE, DELETE, DROP, ALTER, CREATE VIEW, INDEX, EXECUTE ON x509.* TO x509@localhost IDENTIFIED BY 'x509';<\/code><\/pre>\n\n<p>Icingaweb2 herunterladen<\/p>\n\n<pre><code class=\"language-bash\">cd \/usr\/share\/icingaweb2\/modules\ngit clone https:\/\/github.com\/Icinga\/icingaweb2-module-x509.git x509<\/code><\/pre>\n\n<ol>\n    <li>Admin Men\u00fc -&gt; Application\n\n<img decoding=\"async\" src=\"application.png\" alt=\"Application\" \/><\/li>\n    <li>Create new Ressource\n\n<img decoding=\"async\" src=\"ressource.png\" alt=\"New Ressource\" \/><\/li>\n    <li>Datenbank Konfiguration\n\n<img decoding=\"async\" src=\"dbconfig.png\" alt=\"Datenbank\" \/><\/li>\n    <li>Modul x509 aktivieren\n\n<img decoding=\"async\" src=\"module.png\" alt=\"Modul x509\" \/><\/li>\n    <li>Backend Men\u00fc -&gt; Auswahl x509\n\n<img decoding=\"async\" src=\"x509.png\" alt=\"Backend x509\" \/><\/li>\n<\/ol>\n\n<h4>Nagvis Installation<\/h4>\n\n<p>Nagvis download (tar.gz Archiv) von <a href=\"https:\/\/www.nagvis.org\/downloads\">Nagvis Downloadseite<\/a><\/p>\n\n<pre><code class=\"language-bash\">tar -xvf nagvis-x.x.xx.tar.gz<\/code><\/pre>\n\n<p>Nagvis Ordner umbenennen<\/p>\n\n<pre><code class=\"language-bash\">mv nagvis-x.x.xx\/ nagvis\/<\/code><\/pre>\n\n<p>Icinga Livestatus aktivieren<\/p>\n\n<pre><code class=\"language-bash\">icinga2 feature enable livestatus\nsystemctl restart icinga2<\/code><\/pre>\n\n<p>Nagvis Konfiguration anpassen<\/p>\n\n<pre><code class=\"language-bash\">nano \/usr\/share\/nagvis\/etc\/nagvis.ini.php<\/code><\/pre>\n\n<pre><code class=\"language-php\"># Folgendes unter [global] einf\u00fcgen\n[paths]\nbase=\"\/usr\/share\/nagvis\/\"\nhtmlbase=\"\/nagvis\"\nhtmlcgi=\"\/icingaweb2\"\n\n[defaults]\nbackend=\"icinga\"<\/code><\/pre>\n\n<p>Nagvis Backend in derselben Konfiguration weiter unten definieren<\/p>\n\n<pre><code class=\"language-php\">[backend_icinga]\nbackendtype=\"mklivestatus\"\nsocket=\"unix:\/run\/icinga2\/cmd\/livestatus\"<\/code><\/pre>\n\n<p>Nagvis Icinga Modul installieren und aktivieren<\/p>\n\n<pre><code class=\"language-bash\">cd \/usr\/share\/icingaweb2\/modules\ngit clone https:\/\/github.com\/Icinga\/icingaweb2-module-nagvis.git nagvis\nicingacli module enable nagvis<\/code><\/pre>\n\n<h4>Incubator Installation<\/h4>\n\n<p>Installation \u00fcber Git und Aktivierung \u00fcber die icingacli<\/p>\n\n<pre><code class=\"language-bash\">MODULE_NAME=incubator\nMODULE_VERSION=master\nREPO=\"https:\/\/github.com\/Icinga\/icingaweb2-module-${MODULE_NAME}\"\nMODULES_PATH=\"\/usr\/share\/icingaweb2\/modules\"\ngit clone ${REPO} \"${MODULES_PATH}\/${MODULE_NAME}\" --branch \"${MODULE_VERSION}\"\nicingacli module enable \"${MODULE_NAME}\"<\/code><\/pre>\n\n<h4>Cube Installation<\/h4>\n\n<p>Installation \u00fcber Git und Aktivierung \u00fcber die icingacli<\/p>\n\n<pre><code class=\"language-bash\">MODULE_NAME=\"cube\"\nMODULE_VERSION=\"main\"\nREPO=\"https:\/\/github.com\/Icinga\/icingaweb2-module-${MODULE_NAME}\"\nMODULES_PATH=\"\/usr\/share\/icingaweb2\/modules\"\ngit clone ${REPO} \"${MODULES_PATH}\/${MODULE_NAME}\" --branch \"${MODULE_VERSION}\"\nicingacli module enable \"${MODULE_NAME}\"<\/code><\/pre>\n\n<h4>vSphereDB Installation<\/h4>\n\n<p>Installation \u00fcber Git und Aktivierung \u00fcber die icingacli<\/p>\n\n<pre><code class=\"language-bash\">MODULE_NAME=\"vspheredb\"\nMODULE_VERSION=\"master\"\nREPO=\"https:\/\/github.com\/Icinga\/icingaweb2-module-${MODULE_NAME}\"\nMODULES_PATH=\"\/usr\/share\/icingaweb2\/modules\"\ngit clone ${REPO} \"${MODULES_PATH}\/${MODULE_NAME}\" --branch \"${MODULE_VERSION}\"\nicingacli module enable \"${MODULE_NAME}\"<\/code><\/pre>\n\n<p>vSphereDB erstellen<\/p>\n\n<pre><code class=\"language-bash\">mysql -e \"CREATE DATABASE vspheredb CHARACTER SET 'utf8mb4' COLLATE utf8mb4_bin;\n   CREATE USER vspheredb@localhost IDENTIFIED BY 'vspheredb';\n   GRANT ALL ON vspheredb.* TO vspheredb@localhost;\n   FLUSH PRIVILEGES;\"<\/code><\/pre>\n\n<p>DB in Icinga hinzuf\u00fcgen<\/p>\n\n<ol>\n    <li>Unter \"\/icingaweb2\/config\/resource\" eine neue DB hinzuf\u00fcgen und unter Character Set \"utf8mb4\" setzten.<\/li>\n    <li>Jetzt unter \"\/icingaweb2\/vspheredb\/configuration\/database\" die Datenbank ausw\u00e4hlen und initialisieren lassen.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Installation Icinga per Hand Vorbereitung der DB apt install mariadb-server -y mysql_secure_installation !!! danger \"Wichtig\" Bei der Frage, ob f\u00fcr root die Unix Authentifizierung aktiviert werden soll, unbedingt y f\u00fcr Ja eingeben. mysql -- Erstellen der Icinga-DB create database icingadb ; create user 'icingadb'@'localhost' identified by 'icingadb'; grant all privileges on icingadb.* to 'icingadb'@'localhost'; -- [&hellip;]<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9,3,12],"tags":[],"class_list":["post-445","post","type-post","status-publish","format-standard","hentry","category-icinga","category-it","category-linux"],"_links":{"self":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=445"}],"version-history":[{"count":3,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":722,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/445\/revisions\/722"}],"wp:attachment":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}