# Configuration in PandoraFMS

To configure the plugin in PandoraFMS, the following steps must be followed:

**1. Upload the plugin to PandoraFMS, for example in the following path:**

```
/usr/share/pandora_server/util/plugin
```

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

[![imagen.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-01/scaled-1680-/VNOimagen.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-01/VNOimagen.png)

 **3. Name, description and timeout are added:**

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/scaled-1680-/image.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/image.png)

**4. The path of the plugin is added to the command and the necessary parameters for its execution.**

<p class="callout info">For each parameter a macro must be configured, being the syntax of this macro the following : \_fieldx\_, being x the positional number of the parameter, for example in the following image we see the parameters that are mandatory, --id, --url, --token, --agent\_prefix, --localization and --tentacle\_address since all the others can be used with the default values.</p>

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/scaled-1680-/G2nimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/G2nimage.png)

**5. The above macros are configured, adding in each one the value of the parameter:**

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/scaled-1680-/3g0image.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/3g0image.png)

**6. Once configured, you should create a module in an agent that executes the plugin. In the modules menu of an agent we create a new plugin type module:**

[![imagen.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-01/scaled-1680-/503imagen.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-01/503imagen.png)

**7. In the module configuration menu, we name it, select the plugin configured before and click on “create”.**

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/scaled-1680-/Fcbimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/Fcbimage.png)

**8. The agents will be created in the next execution of the plugin:**

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/scaled-1680-/oPIimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2024-02/oPIimage.png)