# Icinga2 - config master weird behavior

**URL:** <https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594>\
**Category:** Icinga 2\
**Tags:** icinga2\
**Created:** [September 29, 2026, 11:09pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594 "2026-09-29T23:09:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![monigacom](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@monigacom](https://community.icinga.com/u/monigacom)\
**Post date:** [September 29, 2026, 11:09pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/1 "2026-09-29T23:09:22Z")

</div>

Hello,  
I see these errors from config master

```auto
[2026-09-29 00:53:41 -0700] information/ApiListener: Ignoring JSON-RPC connection from [::ffff:10.74.48.32]:47438. We're already connected to Endpoint 'master2' (last message sent: 2026-09-29 00:51:27, last message received: 2026-09-29 00:51:51).[2026-09-29 00:53:51 -0700] information/ApiListener: Ignoring JSON-RPC connection from [::ffff:10.74.48.32]:55914. We're already connected to Endpoint 'master2'' (last message sent: 2026-09-29 00:51:27, last message received: 2026-09-29 00:51:51).

```

And these errors from the secondary master

```auto
[2026-09-29 00:53:41 -0700] critical/ApiListener: Error while syncing endpoint 'master1': Error: Cannot send message to already disconnected API client 'master1'!
[2026-09-29 00:53:51 -0700] critical/ApiListener: Error while syncing endpoint 'master1': Error: Cannot send message to already disconnected API client 'master1'!

```

So it seems secondary sees the config master as disconnected API client and the config master seems secondary as already connected API endpoint. When this problem occurs, I had to restart the icinga2 service on the config master and then everything works as normal. This has happened a couple of times in the last 20 days.

Any idea what could be the issue here? There is no firewall between the two master and they are on the same nework subnet.

Thanks

---

<div class="post-metadata">

**Author:** ![bberg](https://community.icinga.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bberg](https://community.icinga.com/u/bberg)\
**Post date:** [September 30, 2026, 7:14am UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/2 "2026-09-30T07:14:20Z")

</div>

I am a bit confused about your setup.

I can see three different endpoints here: master2, master1 and master. Can you explain your setup a bit?

---

<div class="post-metadata">

**Author:** ![monigacom](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@monigacom](https://community.icinga.com/u/monigacom)\
**Post date:** [September 30, 2026, 12:26pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/3 "2026-09-30T12:26:05Z")

</div>

Oh that was a typo. I’ve corrected it. Sorry for the confusion.

I’ve Icinga2 2.15.1-1 running with Icingaweb2 2.12.5 on Ubuntu 24.04 LTS with 12 zones.  
We are not using Director and icinga2 agent. 11K hosts and 56K services configured on the cluster.

---

<div class="post-metadata">

**Author:** ![monigacom](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@monigacom](https://community.icinga.com/u/monigacom)\
**Post date:** [October 1, 2026, 4:05pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/4 "2026-10-01T16:05:56Z")

</div>

I encountered another cluster communication problem , this time with a satellite

Config master reported multiple times until I restarted ‘icinga2’ service on the satellite.

> [2026-09-30 14:41:42 -0700] warning/JsonRpcConnection: Error while sending JSON-RPC message for identity ‘satellite’ Error: Connection reset by peer [system:104 at /usr/include/boost/asio/detail/reactive\_socket\_send\_op.hpp:137 in function ‘do\_complete’]
> 
> Stacktrace:  
> 0# \_\_cxa\_throw in /usr/lib/x86\_64-linux-gnu/icinga2/sbin/icinga2  
> 1# 0x0000652939A237DB in /usr/lib/x86\_64-linux-gnu/icinga2/sbin/icinga2  
> 2# icinga::NetString::WriteStringToStream(boost::intrusive\_ptr\<icinga::Sharedicinga::AsioTlsStream \> const&, icinga::String const&, boost::asio::basic\_yield\_contextboost::asio::executor) in /usr/lib/x86\_64-linux-gnu/icinga2/sbin/icinga2  
> 3# icinga::JsonRpcConnection::WriteOutgoingMessages(boost::asio::basic\_yield\_contextboost::asio::executor) in /usr/lib/x86\_64-linux-gnu/icinga2/sbin/icinga2  
> 4# 0x0000652939D74961 in /usr/lib/x86\_64-linux-gnu/icinga2/sbin/icinga2  
> 5# make\_fcontext in /lib/x86\_64-linux-gnu/libboost\_context.so.1.83.0

The satellite log showed

> [2026-09-30 15:01:12 -0700] information/JsonRpcConnection: Requesting new certificate for this Icinga instance from endpoint ‘master1’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Sending config updates for endpoint ‘master1’ in zone ‘master’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Finished sending config file updates for endpoint ‘master1’ in zone ‘master’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Syncing runtime objects to endpoint ‘master1’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Finished syncing runtime objects to endpoint ‘master1’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Finished sending runtime config updates for endpoint ‘master1’ in zone ‘master’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Sending replay log for endpoint ‘sjc-master1’ in zone ‘master’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Replayed 472 messages.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Finished sending replay log for endpoint 'master1 in zone ‘master’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Finished syncing endpoint ‘master1’ in zone ‘master’.  
> [2026-09-30 15:01:12 -0700] information/ApiListener: New client connection for identity ‘master1’ from [::ffff:10.74.48.31]:50318  
> [2026-09-30 15:01:12 -0700] information/ApiListener: Ignoring JSON-RPC connection from [::ffff:10.74.48.31]:50318. We’re already connected to Endpoint ‘master1’ (last message sent: 2026-09-30 15:01:12, last message received: 2026-09-30 15:00:52).

Is this some sort of an issue with the cluster communcation over JSON-RPC on this version?

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [October 15, 2026, 7:10am UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/5 "2026-10-15T07:10:22Z")

</div>

Wild guess, as I’m not 100% sure if the following would produce these messages.

Do you have the `host` attribute set in

- the masters zones.conf files for the satellites endpoint object
- AND
- the satellites zones config for the masters endpoint objects
- AND
- each masters endpoint object in the masters zones.conf

I’m reffering to this: [Endpoint connection direction](https://icinga.com/docs/icinga-2/latest/doc/06-distributed-monitoring/#endpoint-connection-direction)

Meaning both sides try to connect to each other simultaneously.

I, personally, would setup a “bottom-up” connection direction, meaning the child node connects to the parent.

Master \< Satellite (\< Agent)

---

<div class="post-metadata">

**Author:** ![monigacom](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@monigacom](https://community.icinga.com/u/monigacom)\
**Post date:** [October 20, 2026, 1:12pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/6 "2026-10-20T13:12:15Z")

</div>

Yes, I’ve host attribute set in the zone files. Is there any advantage of having “bottom up” connection direction versus “top down” ?  
Thanks

---

<div class="post-metadata">

**Author:** ![bberg](https://community.icinga.com/letter_avatar_proxy/v4/letter/b/b782af/32.png) [@bberg](https://community.icinga.com/u/bberg)\
**Post date:** [October 20, 2026, 1:20pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/7 "2026-10-20T13:20:38Z")

</div>

> [@monigacom](#):
>
> Yes, I’ve host attribute set in the zone files. Is there any advantage of having “bottom up” connection direction versus “top down” ?

Yes, performance. Imagine a master that haves to connect to thousands of agents - not very performant. In the bottom up config, the agents connects to the master, so they have the load of opening up the tcp connection.

---

<div class="post-metadata">

**Author:** ![monigacom](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@monigacom](https://community.icinga.com/u/monigacom)\
**Post date:** [October 20, 2026, 5:10pm UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/8 "2026-10-20T17:10:35Z")

</div>

Yes that make sense if you use icinga agent which I’m not. I will update the zone config so satellites connect to the master.

---

<div class="post-metadata">

**Author:** ![rachelwilson](https://community.icinga.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@rachelwilson](https://community.icinga.com/u/rachelwilson)\
**Post date:** [October 29, 2026, 10:57am UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/10 "2026-10-29T10:57:59Z")

</div>

one detail: leave host out of the satellite endpoints on the master, but keep it on the satellites for the master endpoints. if neither side has it nobody initiates the connection.

---

<div class="post-metadata">

**Author:** ![wesley\_ford](https://community.icinga.com/letter_avatar_proxy/v4/letter/w/dc4da7/32.png) [@wesley\_ford](https://community.icinga.com/u/wesley_ford)\
**Post date:** [November 12, 2026, 7:39am UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/11 "2026-11-12T07:39:43Z")

</div>

I saw that leaving host on the master side stops the handshake sometimes tbh I ended up removing host from the master endpoint and only keepping it on the satellite and the connections stayed stable

---

<div class="post-metadata">

**Author:** ![yhabteab](https://community.icinga.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@yhabteab](https://community.icinga.com/u/yhabteab)\
**Post date:** [November 12, 2026, 8:24am UTC](https://community.icinga.com/t/icinga2-config-master-weird-behavior/15594/12 "2026-11-12T08:24:39Z")

</div>

Hi, this based on the initial description of the problem from @monigacom, this looks a lot like [Fix that NewClientHandler() could hang indefinitely, preventing new connection attempts by julianbrost · Pull Request #10833 · Icinga/icinga2 · GitHub](https://github.com/Icinga/icinga2/pull/10833) to me, so you can upgrade your masters to v2.16+ and I think, the problem should be gone.
