Monitoring eines Linux Servers mit Icinga2

Installiert wird unter CentOS,  im ersten Step werden die Icinga2 Paketquellen eingebunden:

rpm --import http://packages.icinga.org/icinga.key
 curl -o /etc/yum.repos.d/ICINGA-release.repo http://packages.icinga.org/epel/ICINGA-release.repo

Nun wird icinga2 installiert:

yum install icinga2

Icinga2 starten, sowie sicherstellen, dass icinga2 auch in Zukunft gestartet wird:

systemctl start icinga2.service
systemctl enable icinga2.service

Der node wizard sorgt für weitere Einstellungen, damit die Kommunikation mit dem icinga2 Server stattfinden kann.

 

[root@IcingaSat3 ~]# 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]: 
Starting the Node setup routine...
Please specifiy the common name (CN) [IcingaSat3]: icingasat3.localdomain
Please specifiy the local zone name [icingasat3.localdomain]: 
Please specify the master endpoint(s) this node should connect to:
Master Common Name (CN from your master setup): icinga2.localdomain
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.56.102
Master endpoint port [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.56.102]: 
Port [5665]: 
information/base: Writing private key to '/etc/icinga2/pki/icingasat3.localdomain.key'.
information/base: Writing X509 certificate to '/etc/icinga2/pki/icingasat3.localdomain.crt'.
information/cli: Generating self-signed certifiate:
information/cli: Fetching public certificate from master (192.168.56.102, 5665):

information/cli: Writing trusted certificate to file '/etc/icinga2/pki/trusted-master.crt'.
information/cli: Stored trusted master certificate in '/etc/icinga2/pki/trusted-master.crt'.

Please specify the request ticket generated on your Icinga 2 master.
 (Hint: # icinga2 pki ticket --cn 'icingasat3.localdomain'):  1c9e7fd1456b9d3d8edf96606291630fda0366a9
information/cli: Processing self-signed certificate request. Ticket '1c9e7fd1456b9d3d8edf96606291630fda0366a9'.

information/cli: Created backup file '/etc/icinga2/pki/icingasat3.localdomain.crt.orig'.
information/cli: Writing signed certificate to file '/etc/icinga2/pki/icingasat3.localdomain.crt'.
information/cli: Writing CA certificate to file '/etc/icinga2/pki/ca.crt'.
Please specify the API bind host/port (optional):
Bind Host []: 
Bind Port []: 
Accept config from master? [y/N]: y
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'.
information/cli: Created backup file '/etc/icinga2/zones.conf.orig'.
warning/cli: CN 'icingasat3.localdomain' does not match the default FQDN 'IcingaSat3'. Requires update for NodeName constant in constants.conf!
information/cli: Updating constants.conf.
information/cli: Created backup file '/etc/icinga2/constants.conf.orig'.
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!

Das für den node wizard notwendige Ticket wurde zwischendurch auf dem Icinga2 Server erstellt:

[root@icinga2 ~]# icinga2 pki ticket --cn 'icingasat3.localdomain'
1c9e7fd1456b9d3d8edf96606291630fda0366a9

 

 

 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

* Copy This Password *

* Type Or Paste Password Here *

426Spam-Kommentare bisher blockiert vonSpam Free Wordpress