# Plugin Genieacs

# Introducción

**Ver**. 02-12-2021

Este plugin coge datos de tu entorno genieacs.

**Tipo**: Plug-in de servidor

# Matriz de compatibilidad

<table border="1" id="bkmrk-sistemas-donde-se-ha" style="border-collapse: collapse; width: 100%; height: 84px;"><tbody><tr style="height: 28px;"><td style="width: 50%; height: 28px;">**Sistemas donde se ha probado**</td><td style="width: 50%; height: 28px;">CentOS 7

</td></tr><tr style="height: 28px;"><td style="width: 50%; height: 28px;">**Sistemas donde debería funcionar**</td><td style="width: 50%; height: 28px;">Cualquier sistema linux

</td></tr></tbody></table>

# Pre requisitos

Se requiere :

- Un entorno genieacs
- Lanzar genieacs-nbi
- Python 3
- Tener el **Data Server** de Pandora FMS habilitado
- Tener el **Plugin Server** de Pandora FMS habilitado

# Configuración

Habrá que lanzar genieacs-nbi, que genera la api en el puerto 7557 por defecto.

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

# Ejecución manual del plugin y parámetros generales

Podremos ejecutar el plugin manualmente desde el terminal con el parámetro --as\_agent\_plugin, dejándolo en 1 :

[![genie acs ejecucion manual.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-12/scaled-1680-/genie-acs-ejecucion-manual.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-12/genie-acs-ejecucion-manual.png)

El plug-in cuenta con los siguientes parámetros:

<table id="bkmrk-par%C3%A1metro-descripci%C3%B3" style="height: 210px; width: 798px;"><tbody><tr style="height: 35px;"><td style="height: 35px; width: 185px;">**Parámetro**

</td><td style="height: 35px; width: 613px;"><span style="font-weight: 400;">Descripción</span>

</td></tr><tr style="height: 35px;"><td style="width: 185px; height: 35px;"><span style="font-weight: 400;">-u ip, --url ip</span>

</td><td style="width: 613px; height: 35px;">Es obligatorio. Tienes que introducir tu ip con el puerto, por ejemplo1 92.168.1.178:7557

</td></tr><tr><td style="width: 185px;"><span style="font-weight: 400;">--as\_agent\_plugin</span>

</td><td style="width: 613px;">Es opcional, si quieres que el plugin sea de agente y te meta los módulos en el agente de pandora, ejecuta esto con un 1

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 185px;"><span style="font-weight: 400;">-g GROUP, --group GROUP</span>

</td><td style="height: 35px; width: 613px;"><span style="font-weight: 400;">Grupo de destino de Pandora FMS</span>

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 185px;"><span style="font-weight: 400;">--data\_dir DATA\_DIR</span>

</td><td style="height: 35px; width: 613px;"><span style="font-weight: 400;">Directorio de datos de Pandora FMS. </span>**Por defecto**<span style="font-weight: 400;"> es /var/spool/pandora/data\_in/</span>

</td></tr></tbody></table>

# Módulos generados por el plugin

La ejecución del plugin generará un agente con los siguientes módulos :

**Provisions**

<table border="1" id="bkmrk-provision-id" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 100%;">Provision id</td></tr></tbody></table>

**Virtual Parameters**

<table border="1" id="bkmrk-virtual-parameters-0" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 100%;">Virtual Parameters</td></tr></tbody></table>

**Presets**

<table border="1" id="bkmrk-preset-id-preset-cha" style="border-collapse: collapse; width: 100%; height: 116px;"><tbody><tr style="height: 29px;"><td style="width: 100%; height: 29px;">Preset id</td></tr><tr style="height: 29px;"><td style="width: 100%; height: 29px;">preset channel</td></tr><tr style="height: 29px;"><td style="width: 100%; height: 29px;">preset precondition</td></tr><tr style="height: 29px;"><td style="width: 100%; height: 29px;">preset weight</td></tr></tbody></table>

**Files**

<table border="1" id="bkmrk-file-id-file-chunksi" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 100%;">FIle id</td></tr><tr><td style="width: 100%;">file chunksize</td></tr><tr><td style="width: 100%;">file legth</td></tr><tr><td style="width: 100%;">file upload date</td></tr></tbody></table>

[![genieacs modulos.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-12/scaled-1680-/genieacs-modulos.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-12/genieacs-modulos.png)