Monitoring of Icinga2 cluster with another Icinga2 cluster

Hello.

I’ve tried to find any workable solutions for monitoring the Icinga2 cluster with another Icinga2 cluster but didn’t find anything.

I have a lot of Icinga2 clusters, which monitors different servers in many locations and I want to monitor their masters and satellites in one place. For this, I’ve configured the standalone Icinga2 cluster and want to connect to it all satellites and masters of all other clusters as agents.

The problem is that the Icinga2 has only one daemon of Icinga (no split for server/agent) and I can’t find any solution how to run Icinga2 daemon as a server and agent at the same time.

Thank you for any help.

With best regards,
Denys Neichev

In /etc/init.d/icinga2 is the line:

DAEMON_CONFIG="/etc/icinga2/icinga2.conf"

I would expect that if you create a separate configuration directory and make
sure that the setup in there listens on a different port number (default 5665),
you could then start a second instance by using a modified init file which
points DAEMON_CONFIG to that file.

Let us know how you get on - I like the idea.

Antony.

Is there any way to use the same daemon with native icinga2.conf path for agent and server?

What about monitoring your Icinga systems via Rest API?

Do you have an example for this?

Some examples: is icinga running, status and statistics or check results #3.

1 Like