7.8 pgsnmpd

Table of Contents Previous Next



After installing Advanced Server, you will need to update the LD_LIBRARY_PATH variable. Use the command:
Where x specifies the server version.
This command does not persistently alter the value of LD_LIBRARY_PATH; consult the documentation for your distribution of Linux for information about persistently setting the value of LD_LIBRARY_PATH.
The pgsnmpd configuration file is named snmpd.conf. For information about the directives that you can specify in the configuration file, please review the snmpd.conf man page (man snmpd.conf).
You can create the configuration file by hand, or you can use the snmpconf perl script to create the configuration file. The perl script is distributed with net-snmp package. net-snmp is an open-source package available from:
When the configuration file wizard opens, it may prompt you to read in an existing configuration file. Enter none to generate a new configuration file (not based on a previously existing configuration file).
snmpconf is a menu-driven wizard. Select menu item 1: snmpd.conf to start the configuration wizard. As you select each top-level menu option displayed by snmpconf, the wizard walks through a series of questions, prompting you for information required to build the configuration file. When you have provided information in each of the category relevant to your system, enter Finished to generate a configuration file named snmpd.conf. Copy the file to:
Where x specifies the server version.
By default, pgsnmpd listens on port 161. If the listener port is already being used by another service, you may receive the following error:
agentaddress $host_address:2000
The example instructs pgsnmpd to listen on UDP port 2000, where $host_address is the IP address of the server (e.g. 127.0.0.1).
path_to_PPAS/bin/pgsnmpd -b -c path_to_PPAS/share/snmpd.conf -C "user=enterprisedb dbname=edb password=safe_password port=5444"
Where path_to_PPAS specifies the Advanced Server installation directory.
Include the -b option to specify that pgsnmpd should run in the background.
Include the -c option, specifying the path and name of the pgsnmpd configuration file.
Include the --help option when invoking the pgsnmpd utility to view other pgsnmpd command line options:
-v 2c option instructs the snmpgetnext client to send the request in SNMP version 2c format.
-c public specifies the community name.
localhost indicates the host machine running the pgsnmpd server.
.1.3.6.1.4.1.5432.1.4.2.1.1.0 is the identity of the requested object. To see a list of all databases, increment the last digit by one (e.g. .1.1, .1.2, .1.3 etc.).


Table of Contents Previous Next