Please check the documentation for more details:
https://icinga.com/docs/icinga2/latest/doc/06-distributed-monitoring/