@@ -23,7 +23,7 @@ CA files:
2323In the next step you have to create a certificate and a key file for every node
2424using the following command:
2525
26- icinga2-build-key icinga-node-1
26+ icinga2-build-key icinga2a
2727
2828Please create a certificate and a key file for every node in the Icinga 2
2929Cluster and save the CA key in case you want to set up certificates for
@@ -44,7 +44,7 @@ This setting must be unique on each cluster node, and must also match
4444the name of the local [ Endpoint] ( #objecttype-endpoint ) object and the
4545SSL certificate common name.
4646
47- const NodeName = "icinga-node-1 "
47+ const NodeName = "icinga2a "
4848
4949Read further about additional [ naming conventions] ( #cluster-naming-convention ) .
5050
@@ -74,12 +74,12 @@ A sample config part can look like this:
7474
7575 object ClusterListener "cluster" {
7676 ca_path = "/etc/icinga2/ca/ca.crt"
77- cert_path = "/etc/icinga2/ca/icinga-node-1 .crt"
78- key_path = "/etc/icinga2/ca/icinga-node-1 .key"
77+ cert_path = "/etc/icinga2/ca/icinga2a .crt"
78+ key_path = "/etc/icinga2/ca/icinga2a .key"
7979
8080 bind_port = 8888
8181
82- peers = [ "icinga-node-2 " ]
82+ peers = [ "icinga2b " ]
8383 }
8484
8585The certificate files must be readable by the user Icinga 2 is running as. Also,
@@ -105,8 +105,9 @@ to send configuration files.
105105 -------------------------|------------------------------------
106106 host | hostname
107107 port | port
108- accept_config | defines all nodes allowed to send configs
109- config_files | defines all files to be send to that node - MUST BE AN ABSOLUTE PATH
108+ accept_config | all nodes allowed to send configuration
109+ config_files | all files sent to that node - MUST BE AN ABSOLUTE PATH
110+ config_files_recursive | all files in a directory recursively sent to that node
110111 ------------------------- ------------------------------------
111112
112113A sample config part can look like this:
@@ -115,10 +116,10 @@ A sample config part can look like this:
115116 * Configure config master endpoint
116117 */
117118
118- object Endpoint "icinga-node-1 " {
119- host = "icinga-node-1 .localdomain"
119+ object Endpoint "icinga2a " {
120+ host = "icinga2a .localdomain"
120121 port = 8888
121- config_files = ["/etc/icinga2/conf.d/*.conf "]
122+ config_files_recursive = ["/etc/icinga2/conf.d"]
122123 }
123124
124125If you update the configuration files on the configured file sender, it will
@@ -130,10 +131,10 @@ A sample config part for a config receiver endpoint can look like this:
130131 * Configure config receiver endpoint
131132 */
132133
133- object Endpoint "icinga-node-2 " {
134- host = "icinga-node-2 .localdomain"
134+ object Endpoint "icinga2b " {
135+ host = "icinga2b .localdomain"
135136 port = 8888
136- accept_config = [ "icinga-node-1 " ]
137+ accept_config = [ "icinga2a " ]
137138 }
138139
139140By default these configuration files are saved in /var/lib/icinga2/cluster/config.
@@ -152,39 +153,39 @@ object name.
152153
153154Example:
154155
155- # icinga2-build-key icinga-node-1
156+ # icinga2-build-key icinga2a
156157 ...
157- Common Name (e.g. server FQDN or YOUR name) [icinga-node-1 ]:
158+ Common Name (e.g. server FQDN or YOUR name) [icinga2a ]:
158159
159160 # vim cluster.conf
160161
161- object Endpoint "icinga-node-1 " {
162- host = "icinga-node-1 .localdomain"
162+ object Endpoint "icinga2a " {
163+ host = "icinga2a .localdomain"
163164 port = 8888
164165 }
165166
166167The [ Endpoint] ( #objecttype-endpoint ) name is further referenced as ` peers ` attribute on the
167168[ ClusterListener] ( pbjecttype-clusterlistener ) object.
168169
169- object Endpoint "icinga-node-2 " {
170- host = "icinga-node-2 .localdomain"
170+ object Endpoint "icinga2b " {
171+ host = "icinga2b .localdomain"
171172 port = 8888
172173 }
173174
174175 object ClusterListener "cluster" {
175176 ca_path = "/etc/icinga2/ca/ca.crt"
176- cert_path = "/etc/icinga2/ca/icinga-node-1 .crt"
177- key_path = "/etc/icinga2/ca/icinga-node-1 .key"
177+ cert_path = "/etc/icinga2/ca/icinga2a .crt"
178+ key_path = "/etc/icinga2/ca/icinga2a .key"
178179
179180 bind_port = 8888
180181
181- peers = [ "icinga-node-2 " ]
182+ peers = [ "icinga2b " ]
182183 }
183184
184185Specifying the local node name using the [ NodeName] ( #global-constants ) variable requires
185186the same name as used for the endpoint name and common name above. If not set, the FQDN is used.
186187
187- const NodeName = "icinga-node-1 "
188+ const NodeName = "icinga2a "
188189
189190
190191### <a id =" initial-cluster-sync " ></a > Initial Cluster Sync
@@ -209,7 +210,7 @@ attribute. Required Endpoints must be defined as array.
209210 apply Service "dmz-oracledb" {
210211 import "generic-service"
211212
212- authorities = [ "icinga-node-1 " ]
213+ authorities = [ "icinga2a " ]
213214
214215 assign where "oracle" in host.groups
215216 }
0 commit comments