Skip to main content

Configuration in PandoraFMS

Manual installation

Go to servers > plugins:

image-1629974405286.png

Click on add:

image-1629974430627.png

We put the name and description of your choice:

image-1658834125705.png

We enter as command the execution with the path of the plugin:

python3 </path_pandora_imap>

Remember that the recommended path for the use of the server plugins is: /usr/share/pandora_server/util/plugin/

image-1659089658886.png

Remember that you must run the plugin manually with user and password for the first time to create an imap_credentials.txt file that will save the encrypted credentials.

And in plugin parameters we will introduce these followed by the macro "_field<N>_", the mandatory ones for the plugin to work are --server, (--user, --password must be introduced in a first manual execution only the first time) and at least one of the parameters used for filtering. 

Although it is not mandatory, the use of the --agent_name parameter is highly recommended, since it allows us to customize the name of the agent that will contain the created modules.

--SERVER

image-1658834684259.png

--SUBJECT

image-1658834761517.png

--BODY

image-1658834783278.png

Once this is done, we will click on "create".

Once this is done, the only thing left to do is to call it, so we will go to some agent's view and create an add-in module:

image-1646741530197.png

We will give it a name and in the section "plugin" we will put the one we have just configured.

image-1658834560870.png

 

Once this is done, click on create.

If the module is shown with 1, it means that it is running correctly.