Icinga: Unterschied zwischen den Versionen

Aus XccesS Wiki
Zur Navigation springen Zur Suche springen
Die Seite wurde neu angelegt: „=== Beschreibung === === Download === === Installation === ==== Master Server ==== ==== Agent/Client ==== <syntaxhighlight lang="bash" line="1"> curl -sSL https://packages.icinga.com/icinga.key | apt-key add - apt-add-repository "deb https://packages.icinga.com/$(lsb_release -cs) icinga-$(lsb_release -cs) main" apt-get update apt-get install icinga2 </syntaxhighlight> === Konfiguration === ==== Master Server ==== ==== Agent/Client ==== <syntaxhighlight…“
 
Zeile 20: Zeile 20:
Während der Konfiguration:
Während der Konfiguration:


Typ des Setups: Wähle agent.
*Typ des Setups: Wähle agent.
Master-Verbindung: Gib die IP/Hostname des Masters ein.
*Master-Verbindung: Gib die IP/Hostname des Masters ein.
Port: 5665 (Standardport für den Agent).
*Port: 5665 (Standardport für den Agent).
Zertifikatsanforderung: Bestätige, dass der Agent ein Zertifikat vom Master anfordert.
*Zertifikatsanforderung: Bestätige, dass der Agent ein Zertifikat vom Master anfordert.
Zone: Stelle sicher, dass die Zone des Agents korrekt benannt ist.
*Zone: Stelle sicher, dass die Zone des Agents korrekt benannt ist.
Endpunkt: Füge den Endpunkt des Masters hinzu.
*Endpunkt: Füge den Endpunkt des Masters hinzu.
Nach Abschluss wird die Datei /etc/icinga2/constants.conf und die Zonenkonfiguration in /etc/icinga2/zones.conf angepasst.
*Nach Abschluss wird die Datei /etc/icinga2/constants.conf und die Zonenkonfiguration in /etc/icinga2/zones.conf angepasst.


Am Master:
Am Master:
Zeile 62: Zeile 62:
Code kopieren
Code kopieren
sudo systemctl reload icinga2
sudo systemctl reload icinga2
=== Update ===
=== Update ===



Version vom 16. Dezember 2024, 12:21 Uhr

Beschreibung

Download

Installation

Master Server

Agent/Client

curl -sSL https://packages.icinga.com/icinga.key | apt-key add -
apt-add-repository "deb https://packages.icinga.com/$(lsb_release -cs) icinga-$(lsb_release -cs) main"
apt-get update
apt-get install icinga2

Konfiguration

Master Server

Agent/Client

icinga2 node wizard

Während der Konfiguration:

  • Typ des Setups: Wähle agent.
  • Master-Verbindung: Gib die IP/Hostname des Masters ein.
  • Port: 5665 (Standardport für den Agent).
  • Zertifikatsanforderung: Bestätige, dass der Agent ein Zertifikat vom Master anfordert.
  • Zone: Stelle sicher, dass die Zone des Agents korrekt benannt ist.
  • Endpunkt: Füge den Endpunkt des Masters hinzu.
  • Nach Abschluss wird die Datei /etc/icinga2/constants.conf und die Zonenkonfiguration in /etc/icinga2/zones.conf angepasst.

Am Master: icinga2 ca list icinga2 ca sign --csr <CSR-Dateiname>

Client: sudo systemctl restart icinga2 sudo systemctl enable icinga2

Füge den Agent in der /etc/icinga2/zones.conf hinzu:

bash Code kopieren object Endpoint "vps-hostname" {

   host = "IP-Adresse-des-VPS"

}

object Zone "vps-hostname" {

   endpoints = [ "vps-hostname" ]
   parent = "master"

} Füge den Host in der Datei /etc/icinga2/conf.d/hosts.conf hinzu:

bash Code kopieren object Host "vps-hostname" {

   address = "IP-Adresse-des-VPS"
   check_command = "hostalive"
   vars.os = "Linux"

} Konfiguration neu laden:

bash Code kopieren sudo systemctl reload icinga2

Update

Test

Fehlerbehebung

Starten/Stoppen funktioniert nicht

Lösung 1
auszufüllen

Codeschnipsel

Nützliche Links

Codeschnipsel

Nützliche Links