# Configuración en Pandora

**Sin la configuración remota habilitada**

Deberemos pasarnos el plugin a la maquina virtual, esto podemos hacerlo mediante pscp. Ejecutamos pscp y abrimos el terminal de windows, dentro para pasarnoslo usaremos este código:

```
pscp -P 22 <path-plugin> root@<ip-maquina>:<path-destino>
```

Ejemplo:

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

La recomendación es meter los plugins de agente en la ruta /etc/pandora/plugins para un uso más cómodo.

Para usarlo abriremos pandora\_agent.conf

```
vim /etc/pandora/pandora_agent.conf
```

Y abajo de todo el archivo, cargaremos el plugin que hemos pasado a la maquina añadiendo :

```
module_plugin <path del plugin> <ip a monitorizar con el puerto nginx> <url de status>
```

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

**Con configuración remota habilitada**

Para habilitar la configuración remota tenemos que abrir el archivo pandora\_agent.conf :

```
vim /etc/pandora/pandora_agent.conf
```

<span style="font-weight: 400;">Dentro buscamos la línea remote\_config, para habilitarla la ponemos en 1.</span>

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

Hecho esto, para instalar el plugin con configuración remota habilitada hay dos opciones, la primera es :

Realizar el proceso de enviar el plugin a la máquina virtual como esta definido en la forma de instalar en plugin sin configuración remota habilitada descrita anteriormente, solo que en vez de meter la línea :

```
module_plugin <path del plugin> <ip a monitorizar con el puerto nginx> <url de status>
```

en pandora\_agent.conf desde la máquina, lo haremos desde la consola , en el menu de agentes, pinchamos en configuración remota:

[![3.JPG](https://pandorafms.com/guides/public/uploads/images/gallery/2021-05/scaled-1680-/3.JPG)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-05/3.JPG)

Y metemos la línea, después damos a actualizar:

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

La segunda opción es mediante colecciones.

<span style="font-weight: 400;">Vamos a configuration &gt; collections:</span>

<span style="font-weight: 400;"><span id="bkmrk--28" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 193px;">![](https://lh4.googleusercontent.com/U0axXOQfZof7f6IqWF4rYC7SH-QRIlQ1YKiTzdK9A4kQsISDGxRF8fWvUVSJr7Ijh4uDpcW0YimSOSBSwsl60q3VnYfXw_zQwz6SQWgINHmtqXDvvjdDOku7hIW20Q)</span></span></span></span>

<span style="font-weight: 400;">Pinchamos en crear :</span>

<span style="font-weight: 400;"><span id="bkmrk--29" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 211px;">![](https://lh5.googleusercontent.com/SXdUWvQi9_SEMhvUgYeqENMp6_rePLPw9TasiXWnRv7mFhIE1vG514Iz7VBnPLQERofXNA1tOScUy2R6D7_DdqND2Xj-t6VX7NwHIZk91l9WjP_ngTexLIn0bUM0VQ)</span></span></span></span>

<span style="font-weight: 400;">Ponemos nombre y nombre corto y pinchamos en crear otra vez:</span>

<span style="font-weight: 400;"><span id="bkmrk--30" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 235px;">![](https://lh3.googleusercontent.com/xpx0gy9WpdVhUUYMFqhI8fAInAilmjPfVnfWPy1HB5e6DREmbL8mQo2oSvIA6JgTsvxfaMOYtXRvIU1bTV8aJn2YklLULU_rGknHhvOGSN6B2_jNdXKQDiUqNkxLKQ)</span></span></span></span>

<span style="font-weight: 400;">Cuando este creado vamos a archivos :</span>

<span style="font-weight: 400;"><span id="bkmrk--31" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 624px; height: 179px;">![](https://lh6.googleusercontent.com/7uxAjs6Gka19JebpZ2Cfjc9gKsVdQQUSG10wQLGd8UxWe6W5msDm3BoiQMyaWWLLbwFmk7hcKrgFrOFPcH6YJd67XNrlblmN_yEcG0Xb4DTrslBq2YSqk-j2PtyuAQ)</span></span></span></span>

Pinchamos en "Upload":

<span id="bkmrk--32" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 160px;">![](https://lh6.googleusercontent.com/Wigs6IhacYH3ErKJIqbTgShL95jLJ8MF4BQI4e5sq7KMyOH0xotBqZd4eg618c0BcVMUBgNk5CpdNZo7s7oKyCHOu9F7142l4zxa1Resg3UBQOPxL3XZ7nSDcntfbQ)</span></span></span>

Subimos el plugin y le damos a "ir":

<span id="bkmrk--33" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 213px;">![](https://lh4.googleusercontent.com/mX6MVibG3jpWcFlECkmccocYbja4msOWuYOsm-EEnkkqBawKZaeXSIhuqXs6jK1lVcSElM9fuPT7Ju-qoOuFHR9zzEtm4t9Pi4dbG1Mrc6SPhSVzcCFOcU2EPRWAyg)</span></span></span>

Pinchamos en "volver a crear archivo" :

<span id="bkmrk--34" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 624px; height: 288px;">![](https://lh5.googleusercontent.com/XUwVY6pq6Djps2fjz00bTDDRVnGkdMx2O6IqOK4tlRvUdc43Bo7U0qYTQyfp4INl1rg2_J-957CbYlcoHDY9B4vgnh_ZjkrRXmkGW_8EuqJONyVC9x91KpUDXLcudQ)</span></span></span>

Vamos al menú de plugins de agente :

<span id="bkmrk--35" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 624px; height: 216px;">![](https://lh5.googleusercontent.com/FelcD9cNpSaCBbB7VKDz_jmzL4ceaToVQQPyhYPWnXl0heZXuTFbdaCNvhf8xdwr5O4Hq7V9cqNxAhMSbyyyE64xeoxW_gjrpEtbetI8nyWlnxPcfy7sUqWm-EH-Dw)</span></span></span>

Metemos la ruta del plugin con la dirección ip a monitorizar, seguido de /status:

<span id="bkmrk--36" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 89px;">![](https://lh4.googleusercontent.com/eJ55MX7y3I4Hmr39LfJanW8EXufqR8j97NjG-sRwBYyWdDgiQzeujPHm_MZbm-ZfXRHndQXV2BAOuahAEKZSqwgMmwLFzXcDplfDkF42oQiGsUSP_2EJjTads-j25g)</span></span></span>

<span style="font-weight: 400;">Se verá abajo que se ha cargado el plugin (en esta imagen puedes comprobar la forma en la que hay que introducir la IP, recuerda que hay un espacio entre la IP y /status.</span>

<span id="bkmrk--37" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 615px; height: 285px;">![](https://lh5.googleusercontent.com/-rNAtjkp6HDjM3Egrp3P2ENrjNY0C49WoIUbhaGBrrrAzERBz9F6pOHZCQca8opTF92wYq2tVHbVhGkqxTKRFTcUrLgqGTS3x4EEg1F3QiCqvxTk81HR9ORYoEvCXg)</span></span></span>

<span style="font-weight: 400;">Después, reiniciamos el agente con </span><span style="font-weight: 400;">:</span>

```
/etc/init.d/pandora_agent_daemon restart
```

<span style="font-weight: 400;">Y si todo ha salido bien, deberían salir los módulos en el agente.</span>

**Instalar plugin en versión zip para dispositivos windows**

<span style="font-weight: 400;">Lo primero será instalar el EndPoint MS Windows®, lo podremos descargar de [https://sourceforge.net/projects/pandora/files/](https://sourceforge.net/projects/pandora/files/)</span>

<span style="font-weight: 400;">buscaremos para la versión de pandora que estemos usando, y pinchamos en windows :</span>

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

<span style="font-weight: 400;">Aquí descargaremos en agente windows, en este caso yo me bajare la versión de 64 bits :</span>

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

Empezaremos la instalación del archivo, ponemos la ruta en la que queremos que se instale ("C:\\Program Files" por defecto) y cuando se complete el proceso, ponemos la ip del server en el que se va a instalar el agente.

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

En la siguiente ventana marcamos la pestaña de configuración remota para que salga directamente habilitada.

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

Cuando este instalado, ya en la consola vamos a crear una colección, vamos a configuración &gt; colecciones :

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

Subimos el archivo.zip y marcamos la pestañita que dice "descomprimir":

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

Hecho esto, damos a "volver a crear archivo" para que se guarde.

Luego vamos a recursos&gt;gestionar agentes&gt;módulos (del EndPoint MS Windows®) y vamos a colecciones :

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

Damos en la colección creada previamente al icono de "añadir" :

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

Una vez hecho esto, vamos a servicios y reiniciamos el agente :

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

Veremos que se nos ha creado la colección en "collections", en la carpeta donde se instalo el agente:

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

Después vamos a "plugins de agente" y hacemos la llamada al plugin de la la coleccion que hemos creado poniendo "Program Files\\pandora\_agent\\collections\\nginx-plus\\nginx\_monitor\_enterprise\\nginx\_monitor\_enterprise.exe" &lt;ip ngins con el puerto&gt; :

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

Veremos que ha aparecido abajo :

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

Vamos a agentes, pinchamos en configuración remota del agente windows :

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

Y abajo veremos como se nos ha creado esta línea :

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

Hecho esto, volvemos a reiniciar el EndPoint desde servicios, y ya se nos habrán creado los módulos.