Icinga2 server monitoring: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
David (Diskussion | Beiträge) (→server) |
David (Diskussion | Beiträge) (→client) |
||
| Zeile 12: | Zeile 12: | ||
<pre> | <pre> | ||
Starting the Node setup routine... | Starting the Node setup routine... | ||
| − | Please specifiy the common name (CN) [ | + | Please specifiy the common name (CN) [client]: client.xinux.org |
| − | Please specifiy the local zone name [ | + | Please specifiy the local zone name [client.xinux.org]: |
Please specify the master endpoint(s) this node should connect to: | Please specify the master endpoint(s) this node should connect to: | ||
| − | Master Common Name (CN from your master setup): | + | Master Common Name (CN from your master setup): server.xinux.org |
Do you want to establish a connection to the master from this node? [Y/n]: | Do you want to establish a connection to the master from this node? [Y/n]: | ||
Please fill out the master connection information: | Please fill out the master connection information: | ||
| − | Master endpoint host (Your master's IP address or FQDN): 192.168. | + | Master endpoint host (Your master's IP address or FQDN): 192.168.111.222 |
Master endpoint port [5665]: | Master endpoint port [5665]: | ||
Add more master endpoints? [y/N]: | Add more master endpoints? [y/N]: | ||
Please specify the master connection for CSR auto-signing (defaults to master endpoint host): | Please specify the master connection for CSR auto-signing (defaults to master endpoint host): | ||
| − | Host [192.168. | + | Host [192.168.111.222]: |
Port [5665]: | Port [5665]: | ||
| − | information/base: Writing private key to '/etc/icinga2/pki/ | + | information/base: Writing private key to '/etc/icinga2/pki/client.xinux.org.key'. |
| − | information/base: Writing X509 certificate to '/etc/icinga2/pki/ | + | information/base: Writing X509 certificate to '/etc/icinga2/pki/client.xinux.org.crt'. |
information/cli: Generating self-signed certifiate: | information/cli: Generating self-signed certifiate: | ||
| − | information/cli: Fetching public certificate from master (192.168. | + | information/cli: Fetching public certificate from master (192.168.111.222, 5665): |
information/cli: Writing trusted certificate to file '/etc/icinga2/pki/trusted-master.crt'. | information/cli: Writing trusted certificate to file '/etc/icinga2/pki/trusted-master.crt'. | ||
| Zeile 33: | Zeile 33: | ||
Please specify the request ticket generated on your Icinga 2 master. | Please specify the request ticket generated on your Icinga 2 master. | ||
| − | (Hint: # icinga2 pki ticket --cn ' | + | (Hint: # icinga2 pki ticket --cn 'client.xinux.org'):b000001156f681f578e3aa53454b31ee8052bb7d |
| − | information/cli: Processing self-signed certificate request. Ticket ' | + | information/cli: Processing self-signed certificate request. Ticket 'b0000006546f765f738e8aa0743db85ee5853bb9n'. |
| − | information/cli: Created backup file '/etc/icinga2/pki/ | + | information/cli: Created backup file '/etc/icinga2/pki/client.xinux.org.crt.orig'. |
| − | information/cli: Writing signed certificate to file '/etc/icinga2/pki/ | + | information/cli: Writing signed certificate to file '/etc/icinga2/pki/client.xinux.org.crt'. |
information/cli: Writing CA certificate to file '/etc/icinga2/pki/ca.crt'. | information/cli: Writing CA certificate to file '/etc/icinga2/pki/ca.crt'. | ||
Please specify the API bind host/port (optional): | Please specify the API bind host/port (optional): | ||
| Zeile 52: | Zeile 52: | ||
information/cli: Dumping config items to file '/etc/icinga2/zones.conf'. | information/cli: Dumping config items to file '/etc/icinga2/zones.conf'. | ||
information/cli: Created backup file '/etc/icinga2/zones.conf.orig'. | information/cli: Created backup file '/etc/icinga2/zones.conf.orig'. | ||
| − | warning/cli: CN ' | + | warning/cli: CN 'client.xinux.org' does not match the default FQDN 'gondor'. Requires update for NodeName constant in constants.conf! |
information/cli: Updating constants.conf. | information/cli: Updating constants.conf. | ||
information/cli: Created backup file '/etc/icinga2/constants.conf.orig'. | information/cli: Created backup file '/etc/icinga2/constants.conf.orig'. | ||
Version vom 29. September 2015, 06:40 Uhr
server
- root@max:~# icinga2 pki ticket --cn client.xinux.org
b000000099f461f451e2aa4848db52ee58962bb7d
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) [client]: client.xinux.org Please specifiy the local zone name [client.xinux.org]: Please specify the master endpoint(s) this node should connect to: Master Common Name (CN from your master setup): server.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.111.222 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.111.222]: Port [5665]: information/base: Writing private key to '/etc/icinga2/pki/client.xinux.org.key'. information/base: Writing X509 certificate to '/etc/icinga2/pki/client.xinux.org.crt'. information/cli: Generating self-signed certifiate: information/cli: Fetching public certificate from master (192.168.111.222, 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 'client.xinux.org'):b000001156f681f578e3aa53454b31ee8052bb7d information/cli: Processing self-signed certificate request. Ticket 'b0000006546f765f738e8aa0743db85ee5853bb9n'. information/cli: Created backup file '/etc/icinga2/pki/client.xinux.org.crt.orig'. information/cli: Writing signed certificate to file '/etc/icinga2/pki/client.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 'client.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!
- restart icinga2
root@gondor:~# service icinga2 restart
server
cat /etc/icinga2/zones.conf
object Endpoint "gondor.xinux.org" {
host = "192.168.240.200"
}
object Zone "gondor.xinux.org" {
endpoints = [ "gondor.xinux.org" ]
parent = "master"
}
- restart icinga2
root@max:~# service icinga2 restart