IBM i
Pre-requisites​
Check that the host you want to monitor is a supported host type.
DBmarlin supports monitoring of IBM i hosts remotely via ssh. This is typically over TCP port 22 to the SSH daemon on the IBM i system, which needs to be running and open to allow DBmarlin to connect to it. The SSH daemon is part of IBM Portable Utilities for i (OpenSSH) and can be started with:
STRTCPSVR SERVER(*SSHD)
You will need either a private key file (PEM formatted) or a user profile and password to make the connection. The user profile does not need any special authorities. The same DBMARLIN user profile created for Db2 for i can be used.
IBM i has none of the usual Linux commands, so DBmarlin runs IBM i SQL services through Qshell (qsh) over the SSH connection. These are read-only queries of QSYS2.SYSTEM_STATUS_INFO, QSYS2.SYSDISKSTAT, QSYS2.MEMORY_POOL_INFO and SYSIBMADM.ENV_SYS_INFO.
What is collected​
| Metric | Notes |
|---|---|
| CPU utilisation | The percentage of CPU used. IBM i does not break CPU time down into user, system and so on, so only the total is shown. |
| Memory | Total main storage, and the size of each memory pool (e.g. *MACHINE and *BASE). IBM i divides all memory into pools so there is no used or free memory. |
| Page faults | Page faults per second for each memory pool. |
| Disk | Reads and writes completed, KB read and written, and the disk busy percentage. IBM i does not report I/Os in progress or time spent on I/O. |
Adding the Host Target​
This is done through the User Interface using the Add Host screen. Choose IBM i as the Host Type.
Troubleshooting​
- Try
ping hostnamefrom the DBmarlin server to the target host's IP address or name that you are using to see whether the name is resolvable and reachable. - Try
telnet hostname 22to see whether the ssh port is open and you can establish a connection. If not there could be a firewall blocking, or the SSH daemon is not started on the IBM i system. - Try
ssh user@hostnameto see if you can establish an ssh connection to the target using a password. - Once connected, try
qsh -c 'db2 "SELECT * FROM QSYS2.SYSTEM_STATUS_INFO"'to check that the user profile can run the SQL services that DBmarlin uses.