# Master-Master setup

**URL:** <https://community.icinga.com/t/master-master-setup/10730>\
**Category:** Icinga 2\
**Created:** [October 3, 2022, 5:43pm UTC](https://community.icinga.com/t/master-master-setup/10730 "2022-10-03T17:43:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameer](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@sameer](https://community.icinga.com/u/sameer)\
**Post date:** [October 3, 2022, 5:43pm UTC](https://community.icinga.com/t/master-master-setup/10730/1 "2022-10-03T17:43:28Z")

</div>

I couldn’t get complete help from my last post but thanks to dominik who tried his best…  
So I am trying to setup HA master-master …  
So i set up a master with web UI and one satellite.  
The web interface is up and running with master IP. Also i have added a check for satellite host.  
I made config as per [How to set up High-Availability Masters](https://icinga.com/blog/2020/10/01/how-to-set-up-high-availability-masters/)  
After this i followed few more steps as per Initial Sync for new Endpoints in a Zone where i copied the content(/var/lib/icinga2/icinga2.state and /var/lib/icinga2/api/packages/\_api) from master to satellite (this is to make satellite also a master)  
I tested to shutdown the master to see if the other node will take over but it didn’t …may be i am incomplete with the process.  
Could you please guide what would be the next steps or what am i missing.

Master 1  
object Endpoint “[ftest01.xyz-software.com](http://ftest01.xyz-software.com/)” {  
}

object Endpoint “[ftest02.xyz-software.com](http://ftest02.xyz-software.com/)” {  
host = “192.168.1.246”  
}

object Zone “master” {  
endpoints = [“[ftest01.xyz-software.com](http://ftest01.xyz-software.com/)”, “[ftest02.xyz-software.com](http://ftest02.xyz-software.com/)” ]  
}

object Zone “global-templates” {  
global = true  
}

object Zone “director-global” {  
global = true  
}

## Disabled features: compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus opentsdb perfdata statusdata syslog

Enabled features: api checker command ido-mysql mainlog notification

Master 2  
object Endpoint “[ftest01.xyz-software.com](http://ftest01.xyz-software.com/)” {  
host = “192.168.1.244”  
port = “5665”  
}

object Zone “master” {  
endpoints = [“[ftest01.xyz-software.com](http://ftest01.xyz-software.com/)”, “[ftest02.xyz-software.com](http://ftest02.xyz-software.com/)” ]  
}

object Endpoint “[ftest02.xyz-software.com](http://ftest02.xyz-software.com/)” {  
}

object Zone “global-templates” {  
global = true  
}

//object Zone “director-global” {  
// global = true  
//}  
Disabled features: command compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus notification opentsdb perfdata statusdata syslog  
Enabled features: api checker ido-mysql mainlog

Thanks

---

<div class="post-metadata">

**Author:** ![MarcusCaepio](https://community.icinga.com/user_avatar/community.icinga.com/marcuscaepio/32/287_2.png) [@MarcusCaepio](https://community.icinga.com/u/MarcusCaepio)\
**Post date:** [October 4, 2022, 7:40am UTC](https://community.icinga.com/t/master-master-setup/10730/2 "2022-10-04T07:40:21Z")

</div>

Everything is described in the docs at [Distributed Monitoring - Icinga 2](https://icinga.com/docs/icinga-2/latest/doc/06-distributed-monitoring/#high-availability-master-with-agents)

Did you take care of the database(s) ?

---

<div class="post-metadata">

**Author:** ![sameer](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@sameer](https://community.icinga.com/u/sameer)\
**Post date:** [October 4, 2022, 8:46am UTC](https://community.icinga.com/t/master-master-setup/10730/3 "2022-10-04T08:46:06Z")

</div>

Hi Marcus  
I followed the documentation, after that only i was able to atleast setup something. I think some troubleshooting steps would help fix this…
