Configuring the agent by using the silent response file
The silent response file contains the agent configuration parameters. You can edit the silent response file to modify the values of these parameters, and run the configuration script to create an instance and update the agent configuration values. This mode of configuration is called the silent mode.
About this task
Procedure
To configure the agent by editing the silent response file and running the script without
responding to prompts, complete the following steps:
- In a text editor, open the silent response file that is available in this path: install_dir/samples/postgresql_silent_config.txt where install_dir is the installation directory of PostgreSQL agent. The default installation directory is /opt/ibm/apm/agent.
- To edit the silent configuration file, complete the following steps:
- For the PostgreSQL Server IP Address parameter, specify the IP address of a PostgreSQL server that you want to monitor remotely. If the agent is installed on the server to be monitored, retain the default value.
- For the JDBC database name parameter, specify a database name to change the default database name of postgres.
- For the JDBC user name parameter, specify a user name to change the default name of postgres.
- For the JDBC password parameter, enter the JDBC user password.
- For the JDBC port number parameter, specify a port number to change the
default port number of
5432
. - For the JDBC JAR file parameter, specify the path for the PostgreSQL
connector for the Java™ JAR file Important: The version of the JDBC JAR file must be compatible with the version of the PostgreSQL database that is being monitored.
- For the Java trace level parameter, specify the trace level according to
the IBM® support instructions. The default trace level is
Error
.
- Save and close the silent response file, and run the following command:
install_dir/bin/postgresql-agent.sh config instance_name install_dir/samples/postgresql_silent_config.txt
Where instance_name is the name that you want to give to the instance. - To start the agent, enter the following
command:
install_dir/bin/postgresql-agent.sh start instance_name
What to do next
For help with troubleshooting, see the Troubleshooting section.