{"id":723,"date":"2025-07-31T12:15:59","date_gmt":"2025-07-31T10:15:59","guid":{"rendered":"https:\/\/whoami.lausitz-event.info\/?p=723"},"modified":"2025-09-12T08:50:14","modified_gmt":"2025-09-12T06:50:14","slug":"icinga2-master-sateillite-konfiguration","status":"publish","type":"post","link":"https:\/\/whoami.lausitz-event.info\/?p=723","title":{"rendered":"Icinga2 Master\/Satellite Konfiguration"},"content":{"rendered":"\n\n<p>F\u00fcr ein funktionierendes Setup ist zwingend eine DNS Namensaufl\u00f6sung notwendig. Daher tragen wir die Hostnamen mit ihren IP-Adressen in die jeweilige Hostdatei der beiden Server ein.<\/p>\n\n\n\n\n\n<p><strong><em>\/etc\/hosts<\/em><\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>192.168.0.10 master\n192.168.0.11 satellite<\/code><\/pre>\n\n\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-0-color\">Installation Master<\/mark><\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install mariadb-server -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Erstellung der Icinga-DB und Icinga-WebDB<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mysql\n-- 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\n\n\n\n<p><strong>Repo installieren<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\"&#91;)(]+\" '\/VERSION=\/ {print $2}' \/etc\/os-release); \\\n echo \"deb &#91;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 &#91;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\n\n\n\n<p><strong>Installation der Standard Plugins<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install monitoring-plugins -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Aktivierung der API und Neustart Icinga2<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 api setup\nsystemctl restart icinga2<\/code><\/pre>\n\n\n\n\n\n<p><strong>Aufsetzen Icinga-DB<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icingadb-redis -y\nsystemctl enable --now icingadb-redis-server<\/code><\/pre>\n\n\n\n\n\n<p><strong>Aktivieren des Icinga-DB-Features<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 feature enable icingadb\nicinga2 feature list\nsystemctl restart icinga2.service<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installieren des Icinga-DB Daemons<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icingadb -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>MySQL Schema importieren<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root icingadb &lt;\/usr\/share\/icingadb\/schema\/mysql\/schema.sql<\/code><\/pre>\n\n\n\n\n\n<p><strong>Anpassung der Konfiguration \/etc\/icingadb\/config.yml<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\n\n\n\n<p><strong>Aktivierung und Start des Dienstes<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable --now icingadb\n<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installation Icinga2 Web<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install php-fpm nginx -y\napt install icingadb-web -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Erstellen einer Nginx Konfigurationsdatei<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icingacli setup config webserver nginx --document-root \/usr\/share\/icingaweb2\/public &gt; \/etc\/nginx\/conf.d\/icinga.conf<\/code><\/pre>\n\n\n\n\n\n<p>L\u00f6schen der Default Konfiguration von Nginx.<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/etc\/nginx\/sites-enabled\/default<\/code><\/pre>\n\n\n\n\n\n<p>Jetzt muss noch die Datei der Nginx Konfiguration angepasst werden.<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\n\n\n\n<p>Neustart Nginx<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart nginx<\/code><\/pre>\n\n\n\n\n\n<p><strong>Erstellung Setup Token<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icingacli setup token create\nicingacli setup token show<\/code><\/pre>\n\n\n\n\n\n<p>Dateirechte anlegen<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>chown www-data \/var\/log\/icingaweb2\/\napt install php-imagick -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installation GIT Client<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install git -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Director Installation - Datenbank anlegen<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -e \"CREATE DATABASE director CHARACTER SET 'utf8';\"\nmysql -e \"CREATE USER director@localhost IDENTIFIED BY 'director';\"\nmysql -e \"GRANT ALL ON director.* TO director@localhost;\"<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installation Icinga2 Web Modul<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/usr\/share\/icingaweb2\/modules\ngit clone https:\/\/github.com\/Icinga\/icingaweb2-module-director.git director\nicingacli module enable director<\/code><\/pre>\n\n\n\n\n\n<p><strong>Import MySQL Schema<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u director -pdirector director &lt; \/usr\/share\/icingaweb2\/modules\/director\/schema\/mysql.sql<\/code><\/pre>\n\n\n\n\n\n<p><strong>Director User anlegen<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\n\n\n\n<p><strong>Service installieren und aktivieren<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\n\n\n\n<p><strong>Installation Incubator<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>MODULE_NAME=incubator\nMODULE_VERSION=v0.23.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\n\n\n\n<p><strong>Neustart Maschine<\/strong><\/p>\n\n\n\n\n\n<p><strong>Beendigung Setup http:\/\/IP-Adresse\/icingaweb2\/<\/strong><\/p>\n\n\n\n\n\n<p><strong>vi \/etc\/icinga2\/zones.conf<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n * Generated by Icinga 2 node setup commands\n * on 2025-07-31 07:09:52 +0000\n *\/\n\nobject Endpoint \"master\" {\n}\n\nobject Zone \"master\" {\n        endpoints = &#91; \"master\" ]\n}\n\nobject Zone \"global-templates\" {\n        global = true\n}\n\nobject Zone \"director-global\" {\n        global = true\n}\n\nobject Endpoint \"satellite\" {\n  host = \"192.168.0.11\"\n}\n\nobject Zone \"satellite\" {\n  endpoints = &#91; \"satellite\" ]\n  parent = \"master\"\n}<\/code><\/pre>\n\n\n\n\n\n<p>Hinterher im Director den Kickstart neu ausf\u00fchren. F\u00fcr jeden Satelliten m\u00fcssen eigene Host- und Service-Templates erstellt werden, in denen als Cluster der jeweilige Satellit angegeben werden muss.<\/p>\n\n\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-0-color\">Installation Satellite<\/mark><\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install mariadb-server -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Erstellung der Icinga-DB und Icinga-WebDB<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mysql\n-- 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\n\n\n\n<p><strong>Repo installieren<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\"&#91;)(]+\" '\/VERSION=\/ {print $2}' \/etc\/os-release); \\\n echo \"deb &#91;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 &#91;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\n\n\n\n<p><strong>Installation der Standard Plugins<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install monitoring-plugins -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>Aktivierung der API und Neustart Icinga2<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 api setup\nsystemctl restart icinga2<\/code><\/pre>\n\n\n\n\n\n<p><strong>Aufsetzen Icinga-DB<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icingadb-redis -y\nsystemctl enable --now icingadb-redis-server<\/code><\/pre>\n\n\n\n\n\n<p><strong>Aktivieren des Icinga-DB-Features<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 feature enable icingadb\nicinga2 feature list\nsystemctl restart icinga2.service<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installieren des Icinga-DB Daemons<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icingadb -y<\/code><\/pre>\n\n\n\n\n\n<p><strong>MySQL Schema importieren<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root icingadb &lt;\/usr\/share\/icingadb\/schema\/mysql\/schema.sql<\/code><\/pre>\n\n\n\n\n\n<p><strong>Anpassung der Konfiguration \/etc\/icingadb\/config.yml<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>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\n\n\n\n<p><strong>Aktivierung und Start des Dienstes<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable --now icingadb<\/code><\/pre>\n\n\n\n\n\n<p><strong>Start Icinga Node Wizard<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 node wizard\n\n    Common Name (CN): satellite.private.de\n\n    Node Type: Satellite\n\n    Master Endpoint: master.private.de\n\n    API Port: 5665\n\n    Trust Master: Yes\n\n    Accept config: Yes\n\n    Accept commands: Yes\n<\/code><\/pre>\n\n\n\n\n\n<p><strong>vi \/etc\/icinga2\/zones.conf<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n * Generated by Icinga 2 node setup commands\n * on 2025-07-31 09:05:22 +0200\n *\/\n\nobject Endpoint \"master\" {\n        host = \"192.168.0.10\"\n        port = \"5665\"\n}\n\nobject Zone \"master\" {\n        endpoints = &#91; \"master\" ]\n}\n\nobject Endpoint \"satellite\" {\n        host = \"192.168.0.11\"\n        port = \"5665\"\n}\n\nobject Zone \"satellite\" {\n        endpoints = &#91; \"satellite\" ]\n        parent = \"master\"\n}\n\nobject Zone \"global-templates\" {\n        global = true\n}\n\nobject Zone \"director-global\" {\n        global = true\n}\n<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installation Agent Host Windows<\/strong><\/p>\n\n\n\n\n\n<p><a href=\"https:\/\/packages.icinga.com\/IcingaForWindows\/stable\/agent\/Icinga2-v2.15.0-x86_64.msi\" data-type=\"link\" data-id=\"https:\/\/packages.icinga.com\/IcingaForWindows\/stable\/agent\/Icinga2-v2.15.0-x86_64.msi\">Download <\/a>des Pakets auf dem Windows Agent und Installation.<\/p>\n\n\n\n\n\n<p>Jetzt auf dem Master das Ticket f\u00fcr den Agent Host erzeugen. Dabei kommt eine wilde Zahlenfolge heraus, die wir dann in den Agent kopieren.<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 pki ticket --cn windowsserver.private\n82d32e011eba5a6329966278707b95dbf6cf2314<\/code><\/pre>\n\n\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"651\" src=\"https:\/\/whoami.lausitz-event.info\/wp-content\/uploads\/2025\/07\/image-5.png\" alt=\"\" class=\"wp-image-732\" srcset=\"https:\/\/whoami.lausitz-event.info\/wp-content\/uploads\/2025\/07\/image-5.png 623w, https:\/\/whoami.lausitz-event.info\/wp-content\/uploads\/2025\/07\/image-5-287x300.png 287w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n\n\n<p><strong>Installation Icinga2 Linux Agent<\/strong><\/p>\n\n\n\n\n\n<p>Installation Redhat Repositories<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>rpm --import https:\/\/packages.icinga.com\/icinga.key\ndnf install -y http:\/\/packages.icinga.com\/epel\/icinga-rpm-release-8-latest.noarch.rpm\ndnf install -y https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm\ndnf makecache<\/code><\/pre>\n\n\n\n\n\n<p>\/etc\/yum.repos.d\/Rocky-PowerTools.repo<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;powertools]\nname=Rocky Linux $releasever - PowerTools\nmirrorlist=https:\/\/mirrors.rockylinux.org\/mirrorlist?arch=$basearch&amp;repo=PowerTools-$releasever\n#baseurl=http:\/\/dl.rockylinux.org\/$contentdir\/$releasever\/PowerTools\/$basearch\/os\/\ngpgcheck=1\nenabled=1\ncountme=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-rockyofficial<\/code><\/pre>\n\n\n\n\n\n<p>Installation Icinga2 und Plugins f\u00fcr RedHat<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>dnf install -y icinga2 nagios-plugins-*<\/code><\/pre>\n\n\n\n\n\n<p><\/p>\n\n\n\n\n\n<p>Einrichtung Debian Repositories<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install -y apt-transport-https\ncurl https:\/\/packages.icinga.com\/icinga.key | apt-key add -\necho \"deb https:\/\/packages.icinga.com\/debian icinga-bullseye main\" &gt; \/etc\/apt\/sources.list.d\/icinga-stable-release.list\napt update<\/code><\/pre>\n\n\n\n\n\n<p>Aktuell m\u00fcssen wir noch auf einen Trick zur\u00fcckgreifen, da Icinga2 noch mit Debian12 auf veraltete Bibliotheken angewiesen ist.<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install -y curl gnupg apt-transport-https lsb-release\ncurl https:\/\/packages.icinga.com\/icinga.key | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/icinga-archive-keyring.gpg &gt; \/dev\/null\necho \"deb &#91;signed-by=\/usr\/share\/keyrings\/icinga-archive-keyring.gpg] https:\/\/packages.icinga.com\/debian icinga-bookworm main\" | sudo tee \/etc\/apt\/sources.list.d\/icinga.list\napt update<\/code><\/pre>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icinga2 monitoring-plugins monitoring-plugins-contrib<\/code><\/pre>\n\n\n\n\n\n<p><strong>Installation Oracle Linux Agent<\/strong><\/p>\n\n\n\n\n\n<p>Die Repositories f\u00fcr Redhat basierte Systeme gibt's bei Icinga2 nur noch gegen Cash. Die Repo f\u00fcr CentOS ist zwar nicht mehr sichtbar, aber tats\u00e4chlich noch da. \ud83d\ude09<\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>dnf -y install https:\/\/packages.icinga.com\/centos\/8\/release\/x86_64\/icinga2-bin\/icinga2-bin-2.14.3-1.el8.x86_64.rpm\ndnf -y install https:\/\/packages.icinga.com\/centos\/8\/release\/x86_64\/icinga2-common\/icinga2-common-2.14.3-1.el8.x86_64.rpm\ndnf -y install https:\/\/packages.icinga.com\/centos\/8\/release\/x86_64\/icinga2\/icinga2-2.14.3-1.el8.x86_64.rpm\ndnf -y install nagios-plugins-disk nagios-plugins-load nagios-plugins-uptime nagios-plugins-users nagios-plugins-ssh nagios-plugins-tcp nagios-plugins-time nagios-plugins-procs nagios-plugins-ntp<\/code><\/pre>\n\n\n\n\n\n<p><strong>Start Icinga2 node Wizard<\/strong><\/p>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 node wizard<\/code><\/pre>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>root@linuxhost:~# icinga2 node wizard\nWelcome to the Icinga 2 Setup Wizard!\n\nWe will guide you through all required configuration details.\n\nPlease specify if this is an agent\/satellite setup ('n' installs a master setup) &#91;Y\/n]:\n\nStarting the Agent\/Satellite setup routine...\n\nPlease specify the common name (CN) &#91;linuxhost]:\n\nPlease specify the parent endpoint(s) (master or satellite) where this node should connect to:\nMaster\/Satellite Common Name (CN from your master\/satellite node): satellite\n\nDo you want to establish a connection to the parent node from this node? &#91;Y\/n]:\nPlease specify the master\/satellite connection information:\nMaster\/Satellite endpoint host (IP address or FQDN): 192.168.0.11\nMaster\/Satellite endpoint port &#91;5665]:\n\nAdd more master\/satellite endpoints? &#91;y\/N]:\nParent certificate information:\n\n Version:             3\n Subject:             CN = satellite\n Issuer:              CN = Icinga CA\n Valid From:          Jul 31 07:05:07 2025 GMT\n Valid Until:         Sep  1 07:05:07 2026 GMT\n Serial:              7a:4f:a5:77:33:4b:16:1f:90:57:87:d1:72:8f:3c:fb:8d:3d:a1:ea\n\n Signature Algorithm: sha256WithRSAEncryption\n Subject Alt Names:   satellite\n Fingerprint:         A8 7E EB 18 27 30 91 06 60 EC 66 EA C4 7A 3C 7A 02 74 24 FE C4 67 0D EC AD 6A A0 7D 38 77 97 65\n\nIs this information correct? &#91;y\/N]: y\n\nPlease specify the request ticket generated on your Icinga 2 master (optional).\n (Hint: # icinga2 pki ticket --cn 'linuxhost'): 82505284b83481c59159ac3131bc65fec61b1910\nPlease specify the API bind host\/port (optional):\nBind Host &#91;]:\nBind Port &#91;]:\n\nAccept config from parent node? &#91;y\/N]: y\nAccept commands from parent node? &#91;y\/N]: y\n\nReconfiguring Icinga...\nDisabling feature notification. Make sure to restart Icinga 2 for these changes to take effect.\nEnabling feature api. Make sure to restart Icinga 2 for these changes to take effect.\n\nLocal zone name &#91;linuxhost]:\nParent zone name &#91;master]:\n\nDefault global zones: global-templates director-global\nDo you want to specify additional global zones? &#91;y\/N]:\n\nDo you want to disable the inclusion of the conf.d directory &#91;Y\/n]: Y\nDisabling the inclusion of the conf.d directory...\n\nDone.\n\nNow restart your Icinga 2 daemon to finish the installation!\nroot@linuxhost:~#\n<\/code><\/pre>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart icinga2<\/code><\/pre>\n\n\n\n\n\n<p><\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>F\u00fcr ein funktionierendes Setup ist zwingend eine DNS Namensaufl\u00f6sung notwendig. Daher tragen wir die Hostnamen mit ihren IP-Adressen in die jeweilige Hostdatei der beiden Server ein. \/etc\/hosts Installation Master Erstellung der Icinga-DB und Icinga-WebDB Repo installieren Installation der Standard Plugins Aktivierung der API und Neustart Icinga2 Aufsetzen Icinga-DB Aktivieren des Icinga-DB-Features Installieren des Icinga-DB Daemons [&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":[1,9,3],"tags":[],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-icinga","category-it"],"_links":{"self":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/723","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=723"}],"version-history":[{"count":13,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":809,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions\/809"}],"wp:attachment":[{"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/whoami.lausitz-event.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}