dnaeon / py-vpoller

Distributed vSphere API Proxy
Other
83 stars 31 forks source link

[question] on Ports, ZeroMQ, Zabbix Agent #226

Open rockaut opened 6 years ago

rockaut commented 6 years ago

Hello there,

before i proceed with further Docker Container implementations and usage with Zabbix i have some basic questions. I already had some looks in the docs and also the code as such but haven't come to an definitive conclusion.

  1. Ports There are 4 ports i see which need to be configured.

    • proxy frontend, backend and management
    • worker management

    Is it correct to state that ...

    • a worker talks to proxy backend
    • a worker mgmt is only used by the worker itself
    • a proxy mgmt is only used by the proxy itself
    • a zabbix agent would talk to proxy frontend

Maybe the ports can be mentioned on http://vpoller.readthedocs.io/en/latest/terminology.html too.

  1. Zabbix Agent fetching vPoller Data How exactly is the zabbix agent getting the data from vPoller? In the zabbix vpoller-module (https://github.com/dnaeon/py-vpoller/blob/master/extra/zabbix/vpoller-module/vpoller.c) i found a mention for zmq in zbx_module_vpoller function. Does that mean that the zabbix agent needs a zmq connection to proxy zmq? Is it even possible to install an fetch the data with the Zabbix Module and Zabbix Agent from another Machine/VM/Container and not running on the vpoller host itself?

Thats it ... for now ;-)

best regards Markus

dnaeon commented 6 years ago

Hey Markus,

You are correct about the ports. Would be nice to have these documented as well. Do you mind submitting a PR to update the documentation?

On the second point - yes, the vpoller module for Zabbix is built with zeromq support, so generally the module sends a zeromq message to the vpoller proxy (front end) and waits for a response.

There is also a configuration file for the vpoller module itself, which allows you to configure where exactly the proxy is located, so you don’t have to run a proxy locally.

Let me know if you have other questions.

Thanks, Marin