Skip to main content

Configuration in PandoraFMS

As a server plugin

Installation from 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.

 


We will see a message that will indicate if it has been registered correctly.

 


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

 

serversingles.png

Clicking in the title we will accede to the menu of the plugin.

 


In parameters, we will see all the parameters of the plugin, remember that not all of them are mandatory, only in those that are specified.

 


Below, in the macros of the parameters we will be able to add the required value.

 

 

Manual installation

Go to servers > plugins:

 

image-1629974405286.png

Click on add:

image-1629974430627.png

We put in name and the description that is preferred:

 

 

 

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

 


And in plugin parameters we will introduce these followed by the macro "_field_", the mandatory ones for the plugin to work are -c and --as_agent_plugin (in case we want to run it as a server plugin, otherwise the latter is not essential.

We will define these with the macros below.

 

 

Once this is done, click on "create".

You can check that you have entered the values correctly by executing the preview command in the terminal.

If it does not give errors is that it has been entered well.

Once this is done, the only thing left to do is to call it, so we will go to the view of some agent and we will create a module of complements:

 

image-1646741530197.png

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

Once this is done, click on create.

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