Skip to main content

Configuration in Pandora

Installation from the console

To register the plugin, from the console, go to the "register plugin" section.

register_plugin.png

Click on select file.

register_plugin2.png

Select the pspz2 file containing the plugin.

register1_mongodb.png

Once uploaded you will see a message indicating that it has been successfully registered.

register2_mongodb.png

Once the plugin is registered, we will see it in the plugins section.

serversingles.png

In the parameters section we will see all the parameters used by the plugin, not all of them are essential for its operation, only those that are mandatory in parameters.

register3_mongodb.png

In the section below you will see all the parameters used and you will be able to assign them the required value.

register4_mongodb.png

 

The best way to manage server plugins in Pandora is from "/usr/share/pandora_server/util/plugin" so we will send it to that path.

Then we will move to the folder where we have put it ("/usr/share/pandora_server/util/plugin" is the recommended one").

Remember: You have to install the dependencies that the PyMongo module needs in your system, this is explained in the configuration section.

We move from home with :

cd /usr/share/pandora_server/util/plugin/

We run the plugin to see that it works:

python pandora_mongodb -u <uri> -s <server> -d <databases> -a <alldatabases> -p <prefix> -c <collectionstats> [ -g <group> ] [ --data_dir <data dir> ] [ --as_agent_plugin 1]

image-1629974206435.png

With as_agent_plugin 1 we will be able to see an XML with the data that will be displayed in the console:

image-1629974241455.png

If we execute it in the first way, without "as_agent_plugin 1", we will have created an agent for each database of our cluster. The --as_agent_plugin parameter can only be executed if we insert the databases one by one, introducing their name with the -d parameter.

Anyway, if you prefer to install it manually from the console, the process would be the following:

As a server plugin

Go to servers > plugins:

image-1629974405286.png

Click on add:

image-1629974430627.png

We put in the name and description of your choice:

7.png

We enter as command the path to the plugin, and as parameters the ones we have entered by executing the plugin, the "_field_" fields are macros defined below.

8.png

We put for each macro the description of your choice and as value the data of your ldap server.

9.png

Once this is done, if we execute the plugin from the terminal, the agent with the modules will have been created.