Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:icinga2_-_client_-_grundkonfiguration

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
tachtler:icinga2_-_client_-_grundkonfiguration [2015/12/04 06:18] klaustachtler:icinga2_-_client_-_grundkonfiguration [2016/01/15 07:49] (aktuell) – [Vorbereitungen] klaus
Zeile 16: Zeile 16:
 ===== Vorbereitungen ===== ===== Vorbereitungen =====
  
-Bevor mit der eigentliche Konfiguration von [[https://www.icinga.org/|Icinga]]-Client begonnen werden soll, sollte mit nachfolgendem Befehl, von jeder Konfigurationsdatei im Verzeichnis+Bevor mit der eigentliche Konfiguration von [[https://www.icinga.org/|Icinga]]-Client begonnen werden soll, sollte mit nachfolgenden Befehlen, von jeder Konfigurationsdatei in den Verzeichnissen 
 +  * ''/etc/icinga2''
   * ''/etc/icinga2/conf.d''   * ''/etc/icinga2/conf.d''
-eine **Kopie der originalen Konfigurationsdatei, welche alle mit ''.conf'' enden,** angefertigt werden:+eine **Kopie der originalen Konfigurationsdateien, welche alle mit ''.conf'' enden,** angefertigt werden: 
 +<code> 
 +# for i in `ls /etc/icinga2/*.conf`; do cp -a $i $i.orig; done 
 +</code> 
 +und
 <code> <code>
 # for i in `ls /etc/icinga2/conf.d/*.conf`; do cp -a $i $i.orig; done # for i in `ls /etc/icinga2/conf.d/*.conf`; do cp -a $i $i.orig; done
Zeile 227: Zeile 232:
 <code> <code>
 # icinga2 feature list # icinga2 feature list
-Disabled features: api compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata statusdata  +Disabled features: api command compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata  
-syslog +statusdata syslog 
-Enabled features: checker command ido-mysql mainlog notification+Enabled features: checker mainlog notification
 </code> </code>
  
Zeile 272: Zeile 277:
 <code> <code>
 # icinga2 node wizard # icinga2 node wizard
 +Welcome to the Icinga 2 Setup Wizard!
 +
 +We'll guide you through all required configuration details.
 +
 +
 +
 +Please specify if this is a satellite setup ('n' installs a master setup) [Y/n]: Y
 +Starting the Node setup routine...
 +Please specifiy the common name (CN) [server10.idmz.tachtler.net]: 
 +Please specifiy the local zone name [server10.idmz.tachtler.net]: 
 +Please specify the master endpoint(s) this node should connect to:
 +Master Common Name (CN from your master setup): server11.idmz.tachtler.net
 +Do you want to establish a connection to the master from this node? [Y/n]: Y
 +Please fill out the master connection information:
 +Master endpoint host (Your master's IP address or FQDN): 192.168.0.110
 +Master endpoint port [5665]: 5665
 +Add more master endpoints? [y/N]: N
 +Please specify the master connection for CSR auto-signing (defaults to master endpoint host):
 +Host [192.168.0.110]: 
 +Port [5665]: 
 +information/base: Writing private key to '/etc/icinga2/pki/server10.idmz.tachtler.net.key'.
 +information/base: Writing X509 certificate to '/etc/icinga2/pki/server10.idmz.tachtler.net.crt'.
 +information/cli: Fetching public certificate from master (192.168.0.110, 5665):
 +
 +Certificate information:
 +
 + Subject:     CN = server11.idmz.tachtler.net
 + Issuer:      CN = Icinga CA
 + Valid From:  Dec  1 13:00:07 2015 GMT
 + Valid Until: Nov 27 13:00:07 2030 GMT
 + Fingerprint: 0B 45 BC FA 21 65 46 1C 33 14 41 39 BC 28 7D A6 49 CB C8 AB 
 +
 +Is this information correct? [y/N]: y
 +information/cli: Received trusted master certificate.
 +
 +Please specify the request ticket generated on your Icinga 2 master.
 + (Hint: # icinga2 pki ticket --cn 'server10.idmz.tachtler.net'): 2da7564a4b2314baf57452fc283abdc43dca012a
 +information/cli: Requesting certificate with ticket '2da7564a4b2314baf57452fc283abdc43dca012a'.
 +
 +information/cli: Created backup file '/etc/icinga2/pki/server10.idmz.tachtler.net.crt.orig'.
 +information/cli: Writing signed certificate to file '/etc/icinga2/pki/server10.idmz.tachtler.net.crt'.
 +information/cli: Writing CA certificate to file '/etc/icinga2/pki/ca.crt'.
 +Please specify the API bind host/port (optional):
 +Bind Host []: 192.168.0.10
 +Bind Port []: 5665
 +Accept config from master? [y/N]: N
 +Accept commands from master? [y/N]: y
 +information/cli: Disabling the Notification feature.
 +Disabling feature notification. Make sure to restart Icinga 2 for these changes to take effect.
 +information/cli: Enabling the Apilistener feature.
 +Enabling feature api. Make sure to restart Icinga 2 for these changes to take effect.
 +information/cli: Created backup file '/etc/icinga2/features-available/api.conf.orig'.
 +information/cli: Generating local zones.conf.
 +information/cli: Dumping config items to file '/etc/icinga2/zones.conf'.
 +warning/cli: Backup file '/etc/icinga2/zones.conf.orig' already exists. Skipping backup.
 +information/cli: Updating constants.conf.
 +warning/cli: Backup file '/etc/icinga2/constants.conf.orig' already exists. Skipping backup.
 +information/cli: Updating constants file '/etc/icinga2/constants.conf'.
 +information/cli: Updating constants file '/etc/icinga2/constants.conf'.
 +Done.
 +
 +Now restart your Icinga 2 daemon to finish the installation!
 +
 +
 </code> </code>
  
Zeile 282: Zeile 351:
  
 Nachfolgende Konfigurationsdatei wurden **neu** erstellt oder angepasst: Nachfolgende Konfigurationsdatei wurden **neu** erstellt oder angepasst:
-  * ''/etc/icinga2/conf.d/api-users.conf'' 
   * ''/etc/icinga2/zones.conf''   * ''/etc/icinga2/zones.conf''
   * ''/etc/icinga2/features-available/api.conf''   * ''/etc/icinga2/features-available/api.conf''
Zeile 288: Zeile 356:
   * ''/etc/icinga2/constants.conf''   * ''/etc/icinga2/constants.conf''
  
-Nachfolgender Befehl zeigt an, das das **Feature** (Möglichkeit) - **''api''** - aktuell in [[https://www.icinga.org/|Icinga]] **zusätzlich** aktiviert ist:+Nachfolgender Befehl zeigt an, das das **Feature** (Möglichkeit) - **''api''** - aktuell in [[https://www.icinga.org/|Icinga]]-Client **zusätzlich** aktiviert ist:
 <code> <code>
 # icinga2 feature list # icinga2 feature list
-Disabled features: compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata statusdata syslog +Disabled features: command compatlog debuglog gelf graphite icingastatus livestatus notification opentsdb  
-Enabled features: api checker command ido-mysql mainlog notification+perfdata statusdata syslog 
 +Enabled features: api checker mainlog
 </code> </code>
 +
 +:!: **HINWEIS** - **Da in der ''icinga2 feature list'' __kein__ ''command'' beim [[https://www.icinga.org/|Icinga]]-Client auftaucht, können alle Konfigurationen im Verzeichnis ''/etc/icinga2/conf.d/'' __auskommentiert__ werden!**
 +
 +:!: **WICHTIG** - **Ausnahme hiervon ist __nur__ die Konfigurationsdatei** 
 +  * ''/etc/icinga2/conf.d/commands.conf''
 +**da hier __"Checks"__ definiert werden können, welche nicht im Standard von [[https://www.icinga.org/|Icinga]] enthalten sind und deshalb zusätzliche Module unter**
 +  * ''/usr/lib64/nagios/plugins''
 +**hinzugefügt werden können!**
 +
 +Siehe hierzu auch nachfolgenden internen Link:
 +  * [[tachtler:icinga2_-_plugins|Icinga2 - Plugins]]
  
tachtler/icinga2_-_client_-_grundkonfiguration.1449206281.txt.gz · Zuletzt geändert: 2015/12/04 06:18 von klaus