IBM i monitoring plugin¶
Article last updated: 2026-12-02.
What it does¶
The IBM i monitoring plugin runs a list of Control4i checks against an IBM i partition and turns their output into Pandora FMS modules. It reads a configuration file with one Control4i command per line, executes each command through the check_Control4i client and publishes the parsed results as modules of an agent.
The plugin is a standalone agent generator. It can print the module XML for a Pandora FMS agent, write an agent document into a local data folder, or deliver the agent through Tentacle.
The plugin does not connect to IBM i by itself: it requires the Control4i agent running on the IBM i partition and the check_Control4i client on the host that runs the plugin.
Prepare¶
Compatibility¶
| Scope | State | Evidence |
|---|---|---|
| IBM i partition with the Control4i agent installed and running | Required |
The plugin calls check_Control4i against the Control4i port |
check_Control4i client on the plugin host |
Required |
The plugin executes it for every configured command |
Network access to the Control4i port (default 7357) |
Required |
The check client connects to the Control4i agent |
| Python 3 | Required when running from source |
The plugin is Python 3 |
| Pandora FMS NG 784 and later | Not validated |
No release-specific validation record exists |
Requirements¶
- Control4i installed and running on the IBM i partition. Control4i is third-party software; it is not included in the plugin package.
- The
check_Control4ibinary provided with the package, on the host that runs the plugin. - Network access from the plugin host to the Control4i agent on the IBM i partition.
- A configuration file with the Control4i commands to execute. The package includes a sample with the standard checks.
Install the plugin¶
Copy pandora_ibmi, check_Control4i, check_Control4i_config and pandora_ibmi.conf to the host that will run the plugin. Give execute permission to the two binaries and edit the configuration file with the checks you need.
If you use the .pspz2 package, install it from the Pandora FMS console and keep the check_Control4i client next to the plugin or set its path with --chckpath.
Configure¶
Run the plugin with the IBM i host and the configuration file:
./pandora_ibmi -H <IBM_I_HOST> -C pandora_ibmi.conf
| Option | Required | Default | Description |
|---|---|---|---|
-H, --host |
Yes | — | Address of the host that runs the Control4i agent. |
-C, --conf |
Yes | — | Path to the configuration file with the commands. |
-c, --chckpath |
No | ./check_Control4i |
Path to the check_Control4i client. |
-p, --port |
No | 7357 |
Control4i port. |
-t, --timeout |
No | 10 |
Timeout per command, in seconds. |
-v, --version |
No | V01 |
Control4i command version. |
-a, --agent_alias |
No | Pandora_IBM-I |
Agent alias. |
-g, --group |
No | IBM |
Agent group. |
-m, --module_prefix |
No | IBM-I_ |
Prefix of every module name. |
-A, --use_alias_as_name |
No | Disabled | Use the alias as the agent name instead of its MD5 hash. |
--data_dir |
No | /var/spool/pandora/data_in/ |
Folder for the agent document. |
--tentacle_address |
No | — | Tentacle server address. |
--tentacle_port |
No | 41121 |
Tentacle port. |
--as_agent_plugin |
No | 0 |
1 prints module XML instead of writing or sending an agent. |
The agent name is the MD5 hash of --agent_alias unless -A is used. The alias is stored as the agent alias.
Configuration file¶
The configuration file has one Control4i command per line. Empty lines and lines that start with # are skipped. The sample includes:
ctchksbs control4i
CTCHKCFGST *ALL *LIN *ACTIVE
CTCHKCPU
CTCHKDSK ASP(*SYSBAS) EVOL_W(5) EVOL_C(8) EVOL_TIME(24)
CTCHKJOB CTAUTO *ANY
CTCHKLOG 12
CTCHKPING '127.0.0.1'
CTCHKPRB
CTCHKSAV
The plugin splits each line at :, so avoid : inside a command. Use the command syntax documented by Control4i.
Delivery modes¶
- Agent document in a local folder (default): the plugin writes the agent
.datafile into--data_dirand prints1. - Tentacle: when
--tentacle_addressis set, the plugin sends the agent document withtentacle_client. - Agent plugin: with
--as_agent_plugin 1, the plugin prints the module XML on standard output.
Verify¶
Run one check manually to confirm that Control4i responds:
./check_Control4i -H <IBM_I_HOST> -c CTCHKCPU -p 7357 -t 10 -v V01
Then run the plugin with the same host and configuration file:
./pandora_ibmi -H <IBM_I_HOST> -C pandora_ibmi.conf --as_agent_plugin 1
A successful run prints one module block per check result. If a command fails, the plugin prints the error for that command and continues with the next one.
Understand the results¶
The plugin creates a module for each value returned by each command:
- Module name:
<module_prefix><command>_<label>when the command returns a labeled value, or<module_prefix><command>when it returns a single value. - Module type:
generic_data_stringby default; the plugin does not convert values or add thresholds. - Agent: one agent for the IBM i partition, named with the MD5 of the alias or with the alias when
-Ais used.
The number of modules depends on the commands in the configuration file and on the output of Control4i. A command that returns several counters creates several modules.
Operate and troubleshoot¶
Error Opening configuration file— the path in-Cis wrong or the file is not readable.It is mandatory to specify command!— a line in the configuration file is empty after the split or contains only a comment marker.error with the command—check_Control4ireturned an error. Run the command manually to see the Control4i message.- Connection refused or timeout — the Control4i agent is not running, the port is wrong or the network path is blocked.
- The agent is not created — check the
--data_dirpermission and the Tentacle address and port. - Modules are missing — the command did not return a value or its output format is not one the plugin recognizes. Start with the sample commands and add one at a time.
Reference¶
Command-line options¶
| Option | Description |
|---|---|
-H, --host |
IBM i host with Control4i. |
-C, --conf |
Configuration file. |
-c, --chckpath |
check_Control4i path. |
-p, --port |
Control4i port. |
-t, --timeout |
Timeout per command. |
-v, --version |
Control4i command version. |
-a, --agent_alias |
Agent alias. |
-g, --group |
Agent group. |
-m, --module_prefix |
Module prefix. |
-A, --use_alias_as_name |
Use the alias as the agent name. |
--data_dir |
Data folder. |
--tentacle_address |
Tentacle address. |
--tentacle_port |
Tentacle port. |
--as_agent_plugin |
Print module XML (1). |
Addon identity¶
| Field | Value |
|---|---|
| Marketplace identifier | pandorafms.ibmi |
| Marketplace name | IBM i monitoring |
| Package | pandora_ibmi.pspz2 |
| Type | Standalone plugin, agent generator |
| Executable | pandora_ibmi |
| License | Free download |