# Parámeters

<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;">Path of check\_Control4i (Required)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-H,--host</td><td style="width: 678px; height: 29px;">IP address of the IBM i host on which the command is to be executed (Required)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-C, --conf</td><td style="width: 678px; height: 29px;">Path of the conf file with the commands (required)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-p,--port</td><td style="width: 678px; height: 29px;">If the default port 7357 cannot be used, it is possible to indicate which port will be used.</td></tr><tr><td style="width: 181px;">-t,--timeout</td><td style="width: 678px;">Specifies the duration (in number of seconds) that the plugin waits for a response from the host before indicating an error. The default value is 10 seconds.</td></tr><tr><td style="width: 181px;">-v,--version</td><td style="width: 678px;">Specify the version of the communication mode to be used between the plugin and the partition  
o V01 (default value) can be used for the vast majority of commands.  
o V02 (available as of February 2022) transmits the time of the monitoring server in addition to the command.  
the command. This parameter must be specified for the CTCHKTIM command.</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-a, --agent\_alias</td><td style="width: 678px; height: 29px;">To give a name to the agent that will contain the modules of the custom queries.</td></tr><tr><td style="width: 181px;">-m, --module\_prefix</td><td style="width: 678px;">Prefix for modules generated by the plugin (optional) by default: 'IBM-i\_'.</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--tentacle\_address</td><td style="width: 678px; height: 29px;">Ip of the tentacle server to send the data to (optional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--tentacle\_port </td><td style="width: 678px; height: 29px;">Tentacle port Default 41121 (optional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-A, --use\_alias\_as\_name</td><td style="width: 678px; height: 29px;">Use agent alias as agent name (flag)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">-g,--group</td><td style="width: 678px; height: 29px;">Pandora FMS target group (optional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--data\_dir</td><td style="width: 678px; height: 29px;">Pandora FMS data directory. By default it is /var/spool/pandora/data\_in/ (optional)</td></tr><tr style="height: 29px;"><td style="width: 181px; height: 29px;">--as\_agent\_plugin</td><td style="width: 678px; height: 29px;">It is optional, if you want the plugin to be an agent plugin and put the modules in the pandora agent, execute this with a 1 (optional)</td></tr></tbody></table>

**pandora\_ibmi.conf**

In this file the commands that you want to execute with check\_Control4i and that will return the data that we will see in the PandoraFMS console will be introduced. You should introduce one command per line.

Example of conf file:

```
#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
```