Configuration in PandoraFMS
As a server plugin
Go to Servers > Plugins in the Pandora FMS console and click Add.
Set the desired name and description. In the command field, enter the full path to the executable:
/usr/share/pandora_server/util/plugin/pandora_kafka
The recommended directory for server plugins is:
/usr/share/pandora_server/util/plugin/
In the plugin parameters, include --bootstrap_servers as a required field and add any other arguments you need using _field<N>_ macros.
Example:
--bootstrap_servers _field1_ --topics _field2_ --agent_prefix _field3_ --module_prefix _field4_ --transfer_mode tentacle --tentacle_ip 127.0.0.1 --tentacle_port 41121
After creating the server plugin, open an agent, create a plugin module, and select the configured plugin. This module receives the final 1 or 0 returned by the execution, while the Kafka metrics are sent through separate XML agents.