Problem: I have an Icinga2 Setup with Director. Using a Single Master, it looks like this:
Master1
Zone 1 - 2 agents
Zone 2 - 2 agents
Zone 3 - 2 agents
This works pretty smoothly, but we have the need for a 2nd master.
I have introduced the 2nd master Master2
, and ALL zones get deployed to /var/lib/icinga2/api/zones
and the master successfully loads the configs. However, when the 2nd master takes over the IDO, only host/service objects that exist in the master
zone appear in Icinga Web.
Again, on master2
, all of the other zones exist in /var/lib/icinga2/api/zones
– so something isn’t right.
I have done a sync from master1
to master2
as suggested in another forum post with no avail:
`scp -r /var/lib/icinga2/api/packages/_api root@master2:/var/lib/icinga2/api/packages/_api
I have also removed the /var/lib/icinga2/api/zones
and /var/lib/icinga2/api/zones-stage
directories to force a resync with no avail.
Spot checking the md5sums on some of the hosts.conf
files doesn’t show anything amiss.
Give as much information as you can, e.g.
I know our versions are a little dated, but due to the nature of our environment, I cannot update without a major outage impacting customers. If you believe that an update to any of the packages will fix a known bug, please show me the update notes where it is addressed so I can kick it to change management. Otherwise, I just assume something is merely misconfigured on my end
- Director version (System - About):
1.8.1
- Icinga Web 2 version and modules (System - About):
2.7.3
- Icinga 2 version (
icinga2 --version
):icinga2 - The Icinga 2 network monitoring daemon (version: 2.13.0)
- Operating System and version:
CentOS 7 3.10.0-1127.8.2.el7.x86_64
- Webserver, PHP versions:
php7.1 / apache2.4.6
Any help would be greatly appreciated – Again – I’m assuming this isn’t a bug a just a simple misconfiguration.