Ok so im having trouble getting some windows agents to connect to my master.
While trying to fix the issue i modified my zones.conf and restarted icinga.
Now nothing works anymore. I had backuped the zones.conf before and restored it and tried restarting icinga again, but it doesnt want to anymore.
I see now, that everything was controlled by the director before and its somehow angry, that i tried to usurp the director somewhat.
When i run icinga2 daemon -C it says
warning/ConfigCompiler: Cannot compile file '/etc/icinga2/zones.conf': Error: Function call 'std::ifstream::open' for file '/etc/icinga2/zones.conf' failed with error code 13, 'Permission denied'
Context:
(0) Compiling configuration file '/etc/icinga2/zones.conf'
[2021-10-08 09:47:48 +0200] warning/config: Ignoring directory '/var/lib/icinga2/api/zones/director-global' for unknown zone 'director-global'.
[2021-10-08 09:47:48 +0200] warning/config: Ignoring directory '/var/lib/icinga2/api/zones/master' for unknown zone 'master'.
[2021-10-08 09:47:48 +0200] information/ConfigItem: Committing config item(s).
[2021-10-08 09:47:48 +0200] critical/config: Error: Validation failed for object 'groupNameThatIUse' of type 'HostGroup'; Attribute 'zone': Object 'director-global' of type 'Zone' does not exist.
And it repeats that last error for all my host groups.
What can i do