icingaweb2-module-vspheredb icon indicating copy to clipboard operation
icingaweb2-module-vspheredb copied to clipboard

How to run vspheredb module in containerized environment

Open alamp1360 opened this issue 2 years ago • 2 comments

My Icinga setup consist of various containers:

  • icinga
  • icingadb
  • mariadb
  • redis
  • icingaweb

They all communicate via an overlay network in a docker swarm setup.

As far as i understand, vsphereDB integrates into IcingaWeb as a module and has no relations to Icinga. So it should be possible to add the module into my IcingaWeb container without too much issues.

But a few questions arise:

  • Does the module depend on the "monitoring" module of IcingaWeb? I am using the IcingaDB module, so the monitoring module is disabled...
  • How would i run the various "icingacli vspheredb check" commands? They would run inside the icinga container, but since the icinga container is seprarated from icingaweb container, there is no "icingacli" command in the icinga container. Can this be done somehow via the network? Maybe via the vsphereDB API?

Thank you!

alamp1360 avatar Sep 21 '23 19:09 alamp1360

Answering to my own issue: I added the nrpe daemon into the icingaweb2 container and added the check_nrpe plugin to the icinga2 container. Now i am able to run checks from icinga to icingaweb2/vsphereDB plugin using nrpe.

alamp1360 avatar Oct 10 '23 10:10 alamp1360

https://github.com/lippserd/docker-compose-icinga/issues/35#issuecomment-1220435029

This is what I use, I just run the check in the vSphereDB container.

adn77 avatar Apr 23 '24 17:04 adn77