I’ve started this post several times, it’s hard to know where to begin. I’ve been all over the forum but can’t get a clear understand of how the MASTER->SATELLITE configuration works.
I’ll try to keep this basic. I had an existing Icinga2 installation, working fine. I set it up as a master and everything went smoothly except that my current configuration failed because all the services were then missing because it complained that no
masterhostname.org zone exists (even though no
zone attribute was configured in the service objects). I assumed it recognized there was a master and decided to look for a zone. I renamed the default
zone to be my
masterhostname.org and that problem went away.
Many iterations later, here is my situation:
- My satellite is talking to my master, I get messages like this on the satellite:
[2020-02-13 13:30:06 -0800] information/ApiListener: Finished syncing endpoint 'masterhostname.org' in zone 'masterhostname.org'. [2020-02-13 13:30:06 -0800] information/ApiListener: Applying config update from endpoint 'masterhostname.org' of zone 'masterhostname.org'. [2020-02-13 13:30:06 -0800] warning/ApiListener: Ignoring config update for unknown zone 'satelliteZone'.
You can see my master
Zone is the same as my master
Host name which is the same as my
Endpoint name – does it matter or do the names need to be unique?
- My satellite zone is called
satelliteZoneand I have that in
zones.conf. But if I have it there, should I also have it here:
What’s the difference?? Are they both required, do they work together (either/and) or should I use either
What is “synched” to the satellite? I can see files under
/var/lib/icinga2/api/zonesbut the satellite doesn’t seem to realize it’s in the
satelliteZone. Also, there’s an additional zone listed under that lib folder that is no longer configured but the master does not show it in an object list but the satellite DOES show it. This persists even if I restart. What I need to put manually on the satellite vs what is synched vs what is kept only on the master is the #1 most confusing thing.
How can I troubleshoot the fact that my satellite host is
Thanks for any help or even just ignoring all this and suggesting what the most basic setup is. I tried to keep it per the documentation but it didn’t work right out of the gate and as I dug around more then I started seeing all the different possible permutations.