Parámeters
Parámetro | Descripción |
-c, --chckpath | Path of check_Control4i (Required) |
-H,--host | IP address of the IBM i host on which the command is to be executed (Required) |
-C, --conf | Path of the conf file with the commands (required) |
-p,--port | If the default port 7357 cannot be used, it is possible to indicate which port will be used. |
-t,--timeout | 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. |
-v,--version | 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. |
-a, --agent_alias | To give a name to the agent that will contain the modules of the custom queries. |
-m, --module_prefix | Prefix for modules generated by the plugin (optional) by default: 'IBM-i_'. |
--tentacle_address | Ip of the tentacle server to send the data to (optional) |
--tentacle_port | Tentacle port Default 41121 (optional) |
-A, --use_alias_as_name | Use agent alias as agent name (flag) |
-g,--group | Pandora FMS target group (optional) |
--data_dir | Pandora FMS data directory. By default it is /var/spool/pandora/data_in/ (optional) |
--as_agent_plugin | 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) |
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