Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.

Home Page:https://icinga.com/docs/vsphere/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run vspheredb module in containerized environment

alamp1360 opened this issue · 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!

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.

commented

lippserd/docker-compose-icinga#35 (comment)

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