on 14 Jan 2025 02:41 PM - edited on 14 Jan 2025 03:02 PM by PatrykAdamowicz
This troubleshooting article should help you resolve the most common issues for the custom DB Query Extension
A custom DB Query Extension comprehends many SQL data sources of different databases. Most used are the following:
This extension can fall into error status, and its logs are the most helpful thing to check in such cases.
Where are those logs?
Most logs can be found under the ActiveGate logs directory: https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/configuration/where-can-i-find-acti...
As an alternative, a support archive can be downloaded from the ActiveGate: https://docs.dynatrace.com/docs/shortlink/activegate-diagnostics#collect-and-review-locally and then the logs shall be datasource subfolder:
It is recommended to have a text editor that opens the extracted folder of the SupportArchive.
Following, there are different categories of issues and keywords to look for.
CONNECTION ISSUES
most common issues are identified with certain keywords:
Troubleshooting:
Verify that the host where the database is operating is reachable from the ActiveGate, then a connection to the database is possible. Here, you can either use our tool or a command like this:
$ nmap -p 1431 my.database.host.example.com
Search the keywords in those logs from your ActiveGate
\remotepluginmodule\log\extensions\datasources\com.dynatrace.extension.nameOfTheExtension
A connection between the ActiveGate and the database should always be possible.
CERTIFICATES AND AUTHENTICATION
keywords:
Supported authentication forms with their configuration flags:
Troubleshooting:
DATA ACCESS ISSUE
keywords:
Troubleshooting:
- How to check which query to run?
E.g., the Microsoft SQL Server extension is not returning any result for the metric
1. since this metric is part of the Sessions feature set, check this feature set is active:
2. Download the extension from the Hub, unzip the file, and look for an extension.yaml, within this file, look for the metric key (in this case, sql-server.sessions):
Run the query in the database and check if there is any difference with the result shown in Dynatrace.
If this article did not help, please open a support ticket, mention that this article was used, and provide the following in the ticket:
A support engineer will review the issue and provide further assistance.