I have configured icinga2 master and satellite server and added a new host via Icinga director. But the host/check is stuck at pending status. I believe the zones and other information are not transferred to satellite. I have checked the api user works from master and satellite. As I am really new to Icinga 2, I am not sure what other things needs to check. Also, checks from master node is working and able to add a new host with master as check source.
The problem is the api is not syncing files to the satellite. I have the following configuration in my /etc/icinga2/zones.conf file.
object Zone "global-templates" {
global = true
}
and in satellite, I have accept_config enabled in the api feature. I have the following zones inside /var/lib/icinga2/api/zones/ directory in master icinga server.
“One thing you must not configure inside the Director itself, are master/satellite and global zones. They need to exist on the agent before any config sync happens. Otherwise you have a chicken egg problem.”
Whithout this, how should your master know that this is an agent? With this setting your host is a normal device. So why should the the director sync a config to a normal device? If the option is set to “yes” the director is doing some magic in the back like generating a endpoint defination, zone definition etc.
@rsx@stevie-sy Thank you guys for helping me out. I resolved this issue by deleting the satellite zone created by using the director and created it manually in zones.conf. Thanks a ton!