Technical requirements often require monitoring multiple IBM DB2 instances on a single server where each instance uses a different database port. This includes scenarios where no default instance is configured or where secondary instances must be cataloged specifically for probe connectivity. How do I monitor a server that has 2 instances which also have different database ports?
Guidance
To enable dual monitoring for multiple instances on the same server, follow these sequential steps to catalog the instances and configure the probe environment.
Catalog the primary and secondary instances Work with the DB2 Database Administrator (DBA) to catalog each instance node locally.
Configure environment variables in the Robot Controller Open the Infrastructure Manager (IM) or Admin Console (AC) and navigate to the controller probe on the monitored robot. Under the Environment tab, set or update the following:
/apps/IBM/db2/####/home/sqllib/lib32:/apps/IBM/db2/####/home/sqllib/lib64Set the DB2INSTDEF variable Execute the following commands at the operating system level to ensure the DB2 client recognizes the default definitions:
Restart the Robot Watcher service Restart the Nimsoft Robot Watcher service on the server where the db2 probe is installed. This step is mandatory to initialize the new environment variables and library paths.
Verify connectivity via Command Line Before configuring the probe GUI, use the DB2 command line to ensure the secondary instance is reachable through the newly cataloged node and port.
Create multiple Resource Blocks in the probe In the db2 probe configuration UI, create a separate resource for each instance. Provide the specific catalog node, username, and database port (e.g., port 28060 for the first instance and port 28061 for the second) for each connection.
db2_monitor.log.