I am working on moving to the icinga2 native agent , and testing things out in a dummy environment.
My question/confusion is about what folders / files are sync via config sync.
i have a “master” zone and a “global-templates” zone.
zones.conf on the icinga2 master only has the global-templates and master zone configured (plus the icinga2 master endpoint), all the agent zones and endpoints are in zones.d/master/agents.conf
I added a new CheckCommand object to a file linux-commands.conf inside zones.d/master. But the command is never sync. It seems that only the contents of the global-templates directory is sync’ed.
Is only global-templates sync’ed?
should i configure the master zone as global=true?
do I only put check commands in multiple files inside global-templates? even though some commands are not global?