Configuring the agent on Linux or UNIX systems

You run the configuration script to configure the agent on Linux® systems.

Before you begin

Before you start configuring the Db2® agent for local and remote monitoring, ensure that following task is completed for remote monitoring.

Procedure

  1. Run the command install_dir/bin/db2-agent.sh config instance_name

    Where instance_name is the name that you want to give to the instance:

    Important: For local monitoring, the agent instance name must match the name of the Db2 instance that is being monitored.

    For remote monitoring, the local cataloged node of remote Db2 server instance that is to be monitored.

  2. When you are prompted to provide a value for the following parameters, press Enter to accept the default value, or specify a value and then press Enter:
    • Username
    • Password
    • DB2® SQL path
    • Diaglog path
    • Diaglog message ID filter
    • Monitor remote partitions
    • Monitor all databases
  3. Run the following command to start the agent:

    For local monitoring run install_dir/bin/db2-agent.sh start instance_name by Db2 instance owner user.

    For remote monitoring, run install_dir/bin/db2-agent.sh start node_name with the instance owner of Db2 client instance under which remote Db2 server instance is cataloged.

What to do next

  • Grant privileges to the Db2 user to view data for some attributes of the Db2 agent. 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.