Skip to content

Connect to Master

For the satellite to receive configuration and checks from the Icinga 2 master, it needs to be connected to it. To do this, select the app in the Managed Services menu in MyNWS and open the Connect to Master tab.

Connect to Master

1. Connection settings

Under Master Common Name (CN), enter the CN of the Icinga 2 master endpoint the satellite should connect to. Multiple masters can be specified as a comma-separated list.

Specify CN

Info

The master must be able to reach the satellite on port 5665. If the master is behind a firewall, make sure it can connect to the satellite's address on this port.

Optionally, further parameters can be adjusted under Optional Settings:

Optional Settings

  • Master Port: Alternative port, if the master is not reachable on 5665. Default: 5665.
  • Master IP: Only required if the master's CN cannot be resolved. Multiple IPs can be entered as a comma-separated list.
  • Global Zones: Global zone(s) the satellite should accept. Default: global. Separate multiple zones with a comma, e.g. global,director-global.
  • Disable default templates: Disables pre-installed templates. Possible values: itl, plugins, plugins-contrib, manubulon, windows-plugins, nscp. Leave empty if unsure.

2. Setting up the certificate

A signed certificate is required to secure communication between the satellite and the master. Two methods are available:

  • CSR Autosign – if the Icinga 2 master is the CA and is reachable on port 5665 from outside.
  • CSR Manual Sign – if the master is not reachable on port 5665, or a different instance is used as the CA.

Option A: CSR Autosign

Ticket Autosign

  1. On the Icinga 2 master, run the following command to generate a ticket:

    icinga2 pki ticket --cn <satellite-CN>
    

    The CN matches the hostname shown for the satellite under Endpoints in MyNWS.

  2. Enter the generated ticket in the Ticket field and click Save.

Option B: CSR Manual Sign

CSR Manual Sign

  1. Save the displayed CSR as shown into a file named my.csr.
  2. Sign the CSR with the Icinga 2 master or a custom CA:

    # Sign with the Icinga 2 master
    icinga2 pki sign-csr --csr my.csr --cert <satellite-CN>.crt
    
    # Alternatively with OpenSSL and a custom CA
    openssl x509 -req -days 360 -in my.csr -CA ca.crt -CAkey ca.key \
      -CAcreateserial -out <satellite-CN>.crt
    
  3. Paste the content of the CA file (/etc/icinga2/pki/ca.crt) and the generated certificate (.crt) into the CA and CRT fields and confirm with Save.

Once saved, the satellite connects to the specified master. The status at the top of the app changes to Healthy once the connection has been established successfully.