Multiple masters for one agent - possible?

Hi folks,
we monitor all of our servers with one icinga2-master. Now our service-provider wants to monitor two of the servers too - with icinga2… and that´s my problem. Is it possible permitting 2 masters to monitor one slave?
Or can I use e.g. 2 Icinga2-agent instances on the slave, using different ports?
Any other Idea? Thanks a lot in advance…

Welcome to the forum.

You will need a separate agent on a different port.
Alternatively you could grant them access to the objects in question via API or they duplicate your objects and grand you API access to update the status and messages.

We do this to mirror information from one Icinga2 install to an other.

2 Likes

Thanks a lot for your answer! API sounds like tricky for me, so a separate agent with a different port may be helpful I think. I will try it and post the result here.

Ok, I’ve done it - and it works.

Multiple ports doesn#t work for me, because the server-api may only listen to one port. But I installed 2 different icinga2-services at the server and use different paths for configuration- and work-dir.
This helps: Windows client: Running multiple instances per node · Issue #5084 · Icinga/icinga2 · GitHub
I used local firewall rules for communication between the various icinga servers and their corresponding services on the server.

1 Like