The PMM Oracle database monitor uses SNMP to retrieve statistics.
To use this monitor on Windows you must:
The required port is specified in the TRANSPORT section of the MASTER.CFG file located in the \ADMIN directory.
For example, add the following section to the MASTER.CFG file:
TRANSPORT ordinary SNMP
OVER UDP SOCKET
AT PORT 161
Use port 161 for the Oracle Peer SNMP master agent.
For example:
COMMUNITY public
ALLOW ALL OPERATIONS
USE NO ENCRYPTION
For example, modify the nt_home\system32\drivers\etc\services file from:
…
snmp 161/udp
…
To:
snmp 1161/udp
For example, modify the encaps.cfg file as follows:
AGENT AT PORT 1161 WITH COMMUNITY public
SUBTREES 1.3.6.1.2.1.1,
1.3.6.1.2.1.2,
1.3.6.1.2.1.3,
1.3.6.1.2.1.4,
1.3.6.1.2.1.5,
1.3.6.1.2.1.6,
1.3.6.1.2.1.7,
1.3.6.1.2.1.8,
1.3.6.1.4.1.77
FORWARD ALL TRAPS;
Note: The port (1161) must match the unused port specified in step 5.
The PMM Oracle database monitor uses an SNMP Master Agent to communicate with the Oracle Intelligent Agent. The SNMP Master Agent and the Oracle Intelligent Agent must be configured correctly before the Oracle Intelligent Agent can communicate over SNMP to the Master Agent on a UNIX platform. For detailed information on configuring the Intelligent Agent, see the Oracle Enterprise Manager Configuration Guide.
To use this monitor on UNIX you must:
The necessary SNMP files are installed automatically when you install the Oracle Intelligent Agent. After installing the Oracle Intelligent Agent, you will have to edit the following files as described below:
ź $ORACLE_HOME/network/snmp/peer/CONFIG.master
ź $ORACLE_HOME/network/snmp/peer/CONFIG.encap
ź $ORACLE_HOME/network/snmp/peer/start_peer
ź /etc/snmpd.config
To edit the CONFIG.master file:
ź Find the line beginning with MANAGER and change the IP address coded in this line to match the IP address of the machine where the SNMP traps will be sent.
To edit the CONFIG.encap file:
ź Find the line AGENT AT PORT. It normally reads AGENT AT PORT 1161 WITH COMMUNITY public.
If you modify the port number from 1161, you must also modify the start_peer script.
To edit the start_peer script:
Find the line NEW_SNMPD_PORT= and verify that it is using the same port number listed above in the CONFIG.encap file.
Find the line NEW_TRAPD_PORT= and verify the port number is different from NEW_SNMPD_PORT=.
To edit the snmpd.config file:
Add the following line to the file:
trap <hostname or ipaddress>
Replace the information in angle brackets with the actual hostname or IP address of the local host where the file is located.
To start the SNMP agents:
1. Make sure no SNMP components are running. The three main components are the master_peer, encap_peer, and snmpd. If any of these processes are running, use the ps command to find them, and the kill command to terminate the processes.
For example:
ps -ef | grep snmp
This command checks to see if the SNMP Master Agent is running.
2. Start the PEER Master Agent, PEER encapsulator, and native Digital UNIX SNMP Agent:
cd $ORACLE_HOME/network/snmp/peer
su root
./start_peer -a
This command starts all three processes.
3. Now use the ps command to verify that all three processes were started:
ps -aux |grep peer
ps -aux |grep snmpd
ps -ef | grep snmp