1 Troubleshooting Common Issues
The following topics are provided:
Third-Party Database Plug-in User's Guides
The user's guides have a lot of important information about the prerequisites and steps required for setting up your target instance for monitoring in Enterprise Manager. If you are having issues with trying to get your plug-in to work with your target instance, review the plug-in user's guide to make sure that you have followed all the steps necessary for making your target instance and the plug-in work together.
Debugging the Agent
If you have an issue with a target instance which tracks back to the Agent, the two most useful tools will be the Agent logs and the Agent metric browser. By default, the Agent logs at the INFO level; so, to see a more verbose output, you must change the log level to DEBUG. The Agent metric browser, which also needs to be enabled, gives you a real-time view of all of the target instances and Agent settings.
The following topics are presented:
Setting the Log Level
For some issues, the best way to get to the root of the problems is by checking the Agent logs. However, the Agent logs may not have all the information you need by default. It may be necessary to turn on logging at the DEBUG level to get the level of detail you need to figure out the problem. To do that, you need to edit the emd.properties
file:
$AGENT_BASE_DIR/agent_inst/sysman/config/emd.properties
Look for these entries:
Logger.log.filename=gcagent.log Logger.log.level=INFO
Change the second entry to:
Logger.log.level=DEBUG
Reload or restart the Agent for the setting to take effect.
You can tell the change has taken if the gcagent.log
file starts adding statements with the word DEBUG in them.
This setting is good for resolving an outstanding issue; however, once the issue has been resolved, you should return your Agent to log at a level of INFO to maximize performance.
Turning on the Metric Browser
To turn on the metric browser, edit the same emd.properties
file as above:
$AGENT_BASE_DIR/agent_inst/sysman/config/emd.properties
Add these two parameters:
_enableMetricBrowser=true _metricBrowserNoLogin=true
Reload or restart the Agent for the settings to take effect. Then, open a browser window and go to the following URL:
http://<agent_host>:<agent_port>/emd/browser/main
You can use the EMD_URL
from the emd.properties
file as a model for the URL as it is mostly the same.
This browser interface allows you direct real-time access to the target instances that the Agent monitors. Click on an instance, and then click on any of the metrics in the target instance to view a real-time collection of that metric by the Agent for that target instance. If you are having a problem with one of the metrics, this interface may tell you why, since it will display on the page any error resulting from collecting the metric.
Checking Connectivity from the Agent Host
There are a few simple commands you can execute to tell if the Agent can access the target instance you wish to monitor. Run these commands on your Agent host:
ping <target host> nslookup <target host> telnet <target host> port (success means port is active and not blocked)
JDBC Driver Issues
Failure in loading Classpath: Could not create instance: <JDBC DRIVER>
Possible Cause: The JDBC Driver Name in target properties and/or the incorrect version of the drivers were used.
Action:
- Specify the correct JDBC Driver Name in target properties.
- Make sure the correct version of the drivers are present in the appropriate directory.
See Also: Failure in Loading Classpath: Could Not Create Instance in the Troubleshooting the IBM DB2 Database Plug-in chapter.