I'm a newbie regarding the Icinga2 Director module and I'd love to solve some of the doubts I had so far.
I have a single master and a few clients, without any satellite mid-way.
The name of its preferred global zone
is currently hardcoded to director-global. Please make sure that such
a zone exists on all involved nodes that should get config from the
Director in a direct or indirect way
As far as I understand, I have to define a director-global zone on every node. Do I have to define it even on the Master?
Currently, whenever I deploy a configuration or Icinga2 happens to restart on the nodes, this error popups:
Error: Object 'director-global' of type 'Zone' re-defined: in /var/lib/icinga2/api/zones/director-global/director/zones.conf: 1:0-1:28; previous definition: in /etc/icinga2/zones.conf
However, config files are deployed correctly as ( If understood correctly ) under /var/lib/icinga2/api/zones I can see the related zones and the director-global one.
The master zones.conf has just its endpoint and its related zone, as every other endpoints/zones are defined under /var/lib/icinga2/api/zones.
The nodes zones.confs have all the Endpoints/Zones I've configured so far.
If I remove the director-global on all nodes, the Director won't push the director-global zone even if it is configured as Global.
I can make them work with the following steps:
- Cleanup /var/lib/icinga2/api/zones.
- Define director-global zone on every node.
- Start Icinga2.
- Delete director-global zone. ( in local /etc/icinga2/zones.conf )
- Restart Icinga2.
How can I solve this in a proper way? What am I misunderstanding?
The other question is about local checks.
I wasn't able to configure checks that should run on the Master node against the Clients.
The command_endpoint seems forced to host_name on host checks.
I'd like services as Pings, Curl requests and so on to not be deployed under the director-zone, but to set them locally instead.
I've tried without success:
- "Run on Agent" set to No, on the Service
- "Cluster Zone" set to the Master Zone instead of director-global
Hopefully I didn't miss crucial parts of the documentation or google results.
Version output: icinga2 - The Icinga 2 network monitoring daemon (version: v2.6.3)
Thanks in advance.