Skip to main content

Configuration in PandoraFMS

To configure the plugin in PandoraFMS, follow these steps:

1. Upload the plugin to PandoraFMS, e.g. in the following path:

/usr/share/pandora_server/util/plugin

2. Upload the Oculix JAR and the required .ocx scripts to the server, in a path accessible by the plugin.

3. Create the .conf configuration file with Pandora parameters:

[CONF]
agent_name=Oculix Login Test
agents_group_name=Oculix
module_prefix=
interval=300
agent_plugin=1
temporal=/tmp
transfer_mode=tentacle
tentacle_client=tentacle_client
tentacle_ip=127.0.0.1
tentacle_port=41121
tentacle_opts=
data_dir=/var/spool/pandora/data_in/

4. Go to the plugins section and create a new one:

Add a name, description, and timeout.

5. Add the plugin path in the command and the necessary parameters for its execution.

For each parameter, a macro must be configured. The macro syntax is: _fieldx_, where x is the positional number of the parameter.

Example plugin command:

/usr/share/pandora_server/util/plugin/pandora_oculix.py --script _field1_ --jar _field2_ --conf _field3_

6. Configure the macros above, adding the parameter value in each one:

Example macros:

  • _field1_ = /opt/oculix/scripts/login.ocx
  • _field2_ = /opt/oculix/oculix.jar
  • _field3_ = /opt/oculix/oculix.conf

7. Once configured, a module must be created in an agent to run the plugin. In an agent's module menu, create a new plugin-type module:

8. In the module configuration menu, give it a name, select the previously configured plugin, and click "create".

9. The agent with the modules will be created on the next execution of the plugin.