Skip to content

Commit a6c76ae

Browse files
author
Michael Friedrich
committed
Align the docs with GitHub details on Zone Inception
(cherry picked from commit ac552f2)
1 parent de08763 commit a6c76ae

File tree

2 files changed

+56
-14
lines changed

2 files changed

+56
-14
lines changed

doc/15-troubleshooting.md

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,12 +1621,62 @@ The thing you can do: For `command_endpoint` agents like inside the Director:
16211621
Host -> Agent -> yes, there is no config sync for this zone in place. Therefore
16221622
it is valid to just sync their zones via the config sync.
16231623

1624-
> **Summary**
1625-
>
1626-
> With using the Director, its cluster zones and agent hosts, you are safe.
1627-
>
1628-
> Manage the master/satellite instances outside in zones.conf and import
1629-
> them via kickstart wizard.
1624+
#### Director Changes
1625+
1626+
The following restores the Zone/Endpoint objects as config objects outside of `zones.d`
1627+
in your master/satellite's zones.conf with rendering them as external objects in the Director.
1628+
1629+
[Example](06-distributed-monitoring.md#three-levels-with-masters-satellites-and-agents)
1630+
for a 3 level setup with the masters and satellites knowing about the zone hierarchy
1631+
outside defined in [zones.conf](#zones-conf):
1632+
1633+
```
1634+
object Endpoint "icinga-master1.localdomain" {
1635+
//define 'host' attribute to control the connection direction on each instance
1636+
}
1637+
1638+
object Endpoint "icinga-master2.localdomain" {
1639+
//...
1640+
}
1641+
1642+
object Endpoint "icinga-satellite1.localdomain" {
1643+
//...
1644+
}
1645+
1646+
object Endpoint "icinga-satellite2.localdomain" {
1647+
//...
1648+
}
1649+
1650+
//--------------
1651+
// Zone hierarchy with endpoints, required for the trust relationship and that the cluster config sync knows which zone directory defined in zones.d needs to be synced to which endpoint.
1652+
// That's no different to what is explained in the docs as basic zone trust hierarchy, and is intentionally managed outside in zones.conf there.
1653+
1654+
object Zone "master" {
1655+
endpoints = [ "icinga-master1.localdomain", "icinga-master2.localdomain" ]
1656+
}
1657+
1658+
object Zone "satellite" {
1659+
endpoints = [ "icinga-satellite1.localdomain", "icinga-satellite2.localdomain" ]
1660+
parent = "master" // trust
1661+
}
1662+
```
1663+
1664+
Prepare the above configuration on all affected nodes, satellites are likely uptodate already.
1665+
Then continue with the steps below.
1666+
1667+
> * backup your database, just to be on the safe side
1668+
> * create all non-external Zone/Endpoint-Objects on all related Icinga Master/Satellite-Nodes (manually in your local zones.conf)
1669+
> * while doing so please do NOT restart Icinga, no deployments
1670+
> * change the type in the Director DB:
1671+
>
1672+
> ```sql
1673+
> UPDATE icinga_zone SET object_type = 'external_object' WHERE object_type = 'object';
1674+
> UPDATE icinga_endpoint SET object_type = 'external_object' WHERE object_type = 'object';
1675+
> ```
1676+
>
1677+
> * render and deploy a new configuration in the Director. It will state that there are no changes. Ignore it, deploy anyways
1678+
>
1679+
> That's it. All nodes should automatically restart, triggered by the deployed configuration via cluster protocol.
16301680
16311681
16321682
### Cluster Troubleshooting Overdue Check Results <a id="troubleshooting-cluster-check-results"></a>

doc/16-upgrading-icinga-2.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,6 @@ broken zones, etc. and those long-lasting bugs have been now fixed.
227227
Please consult the [troubleshoot docs](15-troubleshooting.md#troubleshooting-cluster-config-zones-in-zones)
228228
for concrete examples and solutions.
229229

230-
> **Note**
231-
>
232-
> With using the Director, its cluster zones and agent hosts, you are safe.
233-
>
234-
> Manage the master/satellite instances outside in zones.conf and import
235-
> them via kickstart wizard.
236-
237-
238230
#### HA-aware Features <a id="upgrading-to-2-11-cluster-ha-aware-features"></a>
239231

240232
v2.11 introduces additional HA functionality similar to the DB IDO feature.

0 commit comments

Comments
 (0)