Configuring Db2 monitoring
Before you begin
About this task
The Db2 agent is a multiple instance agent, you must first create the instance and then start the agent manually.
The managed system name includes the agent instance name that you specify, for
example,
instance_name:host_name:pc
.
- The pc is your two character product code.
- The instance_name is the agent instance name, and it must be the same as the Db2 instance name that is to be monitored.
DB2inst1
as your agent instance name, your managed system name is
DB2inst1:hostname:ud
. To avoid permission issues when you configure the agent, be sure to use the same root user or non-root user ID that was used for installing the agent. If you installed your agent as a selected user and want to configure the agent as a different user, see Configuring agents as a non-root user. If you installed and configured your agent as a selected user and want to start the agent as a different user, see Starting agents as a non-root user.
Run the configuration script to create an instance and change the configuration settings. You can edit the Db2 silent response file before you run the configuration script to bypass the prompts and responses that are otherwise necessary.
After you configure the Db2 agent, be sure to start the agent with a user ID that has the Db2 SYSADM authority for the monitored instance. The agent requires the SYSADM authority to turn on all monitor switches and collect the monitoring data. Therefore, a user with the SYSADM authority must start the agent. Use the instance owner user, which has the SYSADM authority, to start the agent.
The directions here are for the most current release of this agent. For information about how to check the version of an agent in your environment, see Agent version command. For detailed information about the agent version list and what's new for each version, see Change history.
Procedure
To configure the agent with the default settings, complete the following steps:
What to do next
- Grant privileges to the Db2 user to view data for some attributes of the Db2. For information about granting these privileges, see Granting privileges for viewing Db2 metrics.
- Log in to the Cloud APM console to view the data that is collected by the agent in the dashboards. For information about using the Cloud APM console, see Starting the Cloud APM console.