# Parámetros

<table border="1" id="bkmrk-par%C3%A1metro-descripci%C3%B3" style="width: 859px; height: 377px;"><tbody><tr style="height: 29px;"><td style="width: 181px; height: 29px;">**Parámetro**</td><td style="width: 678px; height: 29px;">**Descripción**</td></tr><tr><td style="width: 181px;">-c, --chckpath</td><td style="width: 678px;">Ruta de check\_Control4i (Obligatorio)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-H,--host</td><td style="width: 678px; height: 29px;">Dirección IP del host IBM i en el que se va a ejecutar el comando (Obligatorio)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-C, --conf</td><td style="width: 678px; height: 29px;">Path del archivo conf con los comandos (obligatorio)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-p,--port</td><td style="width: 678px; height: 29px;">Si el puerto por defecto 7357 no puede ser utilizado, es posible indicar qué puerto se utilizará.</td></tr><tr><td style="width: 181px;">-t,--timeout</td><td style="width: 678px;">Especifica la duración (en número de segundos) que el plugin espera una respuesta del host antes de indicar un error. El valor por defecto es de 10 segundos.</td></tr><tr><td style="width: 181px;">-v,--version</td><td style="width: 678px;">Especifique la versión del modo de comunicación que se utilizará entre el plugin y la partición  
o V01 (valor por defecto) puede utilizarse para la gran mayoría de los comandos  
o V02 (disponible a partir de febrero de 2022) transmite la hora del servidor de monitorización, además de  
el comando. Este parámetro debe especificarse para el comando CTCHKTIM.</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-a, --agent\_alias</td><td style="width: 678px; height: 29px;">Para ponerle un nombre al agente que contendrá los módulos de las custom querys.</td></tr><tr><td style="width: 181px;">-m, --module\_prefix</td><td style="width: 678px;">Prefijo para los módulos generados por el plugin (opcional) por defecto: 'IBM-i\_'</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--tentacle\_address</td><td style="width: 678px; height: 29px;">Ip del servidor tentacle al que mandar los datos (opcional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--tentacle\_port </td><td style="width: 678px; height: 29px;">Puerto de tentacle.Por defecto 41121 (opcional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-A, --use\_alias\_as\_name</td><td style="width: 678px; height: 29px;">Usar el agent alias como nombre de agente. (flag)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-g,--group</td><td style="width: 678px; height: 29px;">Grupo de destino de Pandora FMS (opcional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--data\_dir</td><td style="width: 678px; height: 29px;">Directorio de datos de Pandora FMS. **Por defecto** es /var/spool/pandora/data\_in/ (opcional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--as\_agent\_plugin</td><td style="width: 678px; height: 29px;">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 (opcional)</td></tr></tbody></table>

**pandora\_ibmi.conf**

En este archivo se introducirán los comandos que se quieren ejecutar con check\_Control4i y que devolverán los datos que veremos en la consola de PandoraFMS. Se deberá introducir un comando por línea.

Ejemplo de archivo conf:

```bash
#Configuration file example with control4i built in commands

#check if control4i is running
ctchksbs control4i
#The CTCHKCFGST command checks that a configuration item (line, controller or device) is in the expected state. 
CTCHKCFGST *ALL *LIN *ACTIVE
#The CTCHKCPU command checks power usage by the system, all the jobs in a list of subsystems or by one or  several jobs. 
CTCHKCPU
#The CTCHKCPU command checks power usage by the control4i SBS.
CTCHKCPU *SBS 2 80 90 control4i
#The CTCHKDSK command is used to monitor system ASP disk space usage, A Warning alert will be generated if the disk % used has increased by 5% over a period of 24 hours. A Critical Alert will be generated if the disk % used has increased by 8% over a period of 24 hours. 
CTCHKDSK ASP(*SYSBAS) EVOL_W(5) EVOL_C(8) EVOL_TIME(24)
#The CTCHKJOB command is used to check whether a job is active or inactive, check for CTAUTO Job
CTCHKJOB CTAUTO *ANY
#The CTCHKLOG command is used to count the number of error messages in a specific time.
CTCHKLOG 12
#The CTCHKPING command is used to check that a corresponding server is available (via the PING command) from the IBM i partition.
CTCHKPING '127.0.0.1'
#The CTCHKPRB command is used to generate an alert when a system problem is detected. System problems are visible with the WRKPRB command.
CTCHKPRB
#The CTCHKSAV command is used to check that the backups were made correctly.
CTCHKSAV
```

<div id="bkmrk-"><div></div></div>