Icinga2 server monitoring: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) (→client) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
=server= | =server= | ||
*root@max:~# icinga2 pki ticket --cn gondor.xinux.org | *root@max:~# icinga2 pki ticket --cn gondor.xinux.org | ||
| − | + | b000000058f681f491e3aa4848db31ee8052bb7d | |
=client= | =client= | ||
*installieren von icinga2 | *installieren von icinga2 | ||
| Zeile 7: | Zeile 7: | ||
apt-get update | apt-get update | ||
apt-get install icinga2 | apt-get install icinga2 | ||
| + | *client setup wizard | ||
| + | icinga2 node wizard | ||
| + | <pre> | ||
| + | Starting the Node setup routine... | ||
| + | Please specifiy the common name (CN) [gondor]: gondor.xinux.org | ||
| + | Please specifiy the local zone name [gondor.xinux.org]: | ||
| + | Please specify the master endpoint(s) this node should connect to: | ||
| + | Master Common Name (CN from your master setup): max.xinux.org | ||
| + | Do you want to establish a connection to the master from this node? [Y/n]: | ||
| + | Please fill out the master connection information: | ||
| + | Master endpoint host (Your master's IP address or FQDN): 192.168.240.252 | ||
| + | Master endpoint port [5665]: | ||
| + | Add more master endpoints? [y/N]: | ||
| + | Please specify the master connection for CSR auto-signing (defaults to master endpoint host): | ||
| + | Host [192.168.240.252]: | ||
| + | Port [5665]: | ||
| + | information/base: Writing private key to '/etc/icinga2/pki/gondor.xinux.org.key'. | ||
| + | information/base: Writing X509 certificate to '/etc/icinga2/pki/gondor.xinux.org.crt'. | ||
| + | information/cli: Generating self-signed certifiate: | ||
| + | information/cli: Fetching public certificate from master (192.168.240.252, 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 'gondor.xinux.org'):b000000058f681f491e3aa4848db31ee8052bb7d | ||
| + | information/cli: Processing self-signed certificate request. Ticket 'b000000058f681f491e3aa4848db31ee8052bb7d'. | ||
| + | |||
| + | information/cli: Created backup file '/etc/icinga2/pki/gondor.xinux.org.crt.orig'. | ||
| + | information/cli: Writing signed certificate to file '/etc/icinga2/pki/gondor.xinux.org.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 'gondor.xinux.org' does not match the default FQDN 'gondor'. 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! | ||
| + | </pre> | ||
=sources= | =sources= | ||
*http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up-icinga2 | *http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up-icinga2 | ||
Version vom 28. September 2015, 14:29 Uhr
server
- root@max:~# icinga2 pki ticket --cn gondor.xinux.org
b000000058f681f491e3aa4848db31ee8052bb7d
client
- installieren von icinga2
add-apt-repository ppa:formorer/icinga apt-get update apt-get install icinga2
- client setup wizard
icinga2 node wizard
Starting the Node setup routine... Please specifiy the common name (CN) [gondor]: gondor.xinux.org Please specifiy the local zone name [gondor.xinux.org]: Please specify the master endpoint(s) this node should connect to: Master Common Name (CN from your master setup): max.xinux.org Do you want to establish a connection to the master from this node? [Y/n]: Please fill out the master connection information: Master endpoint host (Your master's IP address or FQDN): 192.168.240.252 Master endpoint port [5665]: Add more master endpoints? [y/N]: Please specify the master connection for CSR auto-signing (defaults to master endpoint host): Host [192.168.240.252]: Port [5665]: information/base: Writing private key to '/etc/icinga2/pki/gondor.xinux.org.key'. information/base: Writing X509 certificate to '/etc/icinga2/pki/gondor.xinux.org.crt'. information/cli: Generating self-signed certifiate: information/cli: Fetching public certificate from master (192.168.240.252, 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 'gondor.xinux.org'):b000000058f681f491e3aa4848db31ee8052bb7d information/cli: Processing self-signed certificate request. Ticket 'b000000058f681f491e3aa4848db31ee8052bb7d'. information/cli: Created backup file '/etc/icinga2/pki/gondor.xinux.org.crt.orig'. information/cli: Writing signed certificate to file '/etc/icinga2/pki/gondor.xinux.org.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 'gondor.xinux.org' does not match the default FQDN 'gondor'. 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!