11.4 Troubleshooting Metric Collections

11.4.1 Metrics are not Getting updated for Oracle GoldenGate Targets

Metrics are getting updated neither on the Oracle GoldenGate Home page nor within the Target Detail page for Oracle GoldenGate targets.
Verify that Oracle Enterprise Manager Agent evaluates the metric correctly. To check whether the agent can evaluate the metric or not:

Using the emctl command:

  1. Execute the emctl command as follows:
    emctl config agent listtargets | grep <target_type>
  2. Check if the target that shows pending status is listed here. If it is listed, then run the command as follows:
    ./emctl getmetric agent <target_name>,<target_type>,<metric_name>
    • <target_name> is the full name you will see on the OGG Home page (assuming the name was not changed in the home page or alias not given).
    • <target_type>: oracle_goldengate_extract is the target type for Extract and oracle_goldengate_replicat for Replicat.
    • <metric_name>: ExtractMetric is the metric name for oracle_goldengate_extract target and ReplicatMetric for oracle_goldengate_replicat target. List of all metric names can be viewed in the Agent Metric browser.

Using the Metric browser:

  1. Open the agent metric browser url: https://<Agent host>:<Agent Port>/emd/browser/main. Alternatively, you can find the agent url by using the emctl status agent command.
  2. Choose the target (that shows pending status). Click MetricName and view the results.

Check if the Metric is Suspended:

  1. Using the Metric browser: Go to the Metrics browser and click on agent. Lookup for the following metric called z#Tasks_in_Suspension and then click the metric.
  2. Running the emctl command as follows: ./emctl getmetric agent <agentname>,oracle_emd, z#Tasks_in_Suspension
  3. Using the Suspension directory: Check whether the Response metric is listed in the SUSPENSION directory as follows: $Agent_install_location/agent_inst/sysman/emd/state/statemgmt/oracle_emd/agent /SUSPENSION/*.*