Icinga / icinga2-diagnostics

Shell script for analyzing Icinga 2 installations.
GNU General Public License v3.0
26 stars 9 forks source link

Detect Zone in Zone sync #87

Closed widhalmt closed 4 years ago

widhalmt commented 4 years ago

Icinga 2 2.11 prohibits a configuration which was never correct but did work because of config checks not so strict. Because this could lead to problems the new release of Icinga doesn't allow this anymore.

What's it all about: Zone objects for satellites or Agents which are not mere command_endpoints could be configured in /etc/icinga2/zones.d/[parent zone] and were synced to other masters and satellites in parent zone. From 2.11 on the Zone objects have to be configured outside zones.d, namely in zones.conf.

There's an issue explaining the topic in more detail and trying to find a solution which works with the new fixes and maybe old configuration as well: https://github.com/Icinga/icinga2/issues/7530

We need a way to detect zones which are configured in a subdirectory of zones.d and have their own config.

Thomas-Gelf commented 4 years ago

@widhalmt: related to this problem there will be https://github.com/Icinga/icingaweb2-module-director/issues/1958 in v1.7.

Cheers, Thomas

widhalmt commented 4 years ago

Thanks @Thomas-Gelf . That's great to hear. We'll add the check to diagnostics because some users will have this kind of configuration without Director, too.