<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Database Host details are missing(host_unavailable) in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Database-Host-details-are-missing-host-unavailable/ta-p/228521</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many times users complaint about the Host details which are missing or not showing in Database services. Question is “Why it should show?” or “Why it should not show?”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Database services are detected/determined based on the calls that are being made by several services within the application call hierarchy. Dynatrace doesn't consider methods, but rather commits, queries, and modifications related to your database services. Database calls that are made through monitored Java, .NET, PHP and Node.js processes are monitored automatically as long as the interaction with the database relies on a supported database framework, such as JDBC, ADO.NET, or PDO. When OneAgent is installed on the host that runs your application server, Dynatrace ensures that all database statements are logged, as long as deep monitoring is active for the calling processes and the database request is appended to an existing PurePath® distributed trace. (&lt;A href="https://docs.dynatrace.com/docs/shortlink/database-detection#how-database-activity-is-monitored" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/database-detection#how-database-activity-is-monitored&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let’s see some solution to this problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For Database to show Host related information in Properties, make sure to install Oneagent in that Host which has database running.&lt;/LI&gt;&lt;LI&gt;You can also have an Active gate extension connecting remotely to your database server.&lt;/LI&gt;&lt;LI&gt;Even after installing Oneagent in host where Database is running, you still see a message (host_unavailable) in database properties as below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chiranjitdutta_0-1699874337294.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15483iCDBEBE6C7E29C7E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chiranjitdutta_0-1699874337294.png" alt="chiranjitdutta_0-1699874337294.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Check whether host name and port number if they are being read by “&lt;STRONG&gt;sqlhosts&lt;/STRONG&gt;” file. “&lt;STRONG&gt;&lt;U&gt;SQLH_TYPE=FILE;SQLH_FILE=/deployments/config/sqlhosts&lt;/U&gt;&lt;/STRONG&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If yes then the OneAgent cannot access local configuration files. Thus, the OneAgent cannot resolve the name of the host&lt;/LI&gt;&lt;LI&gt;You would need to check the JDBC connection string if the HOST name is visible in that and Oneagent can then capture the Host name value to display in Properties.&lt;/LI&gt;&lt;LI&gt;There is a mechanism for routing the connection where JDBC sensor of Oneagent should be able to extract the Hostname(DNS resolved) or by IP address from the JDBC connection String.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any of the above scenarios doesn’t solve the issue, please reach out to Support to check it further.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 11:20:40 GMT</pubDate>
    <dc:creator>chiranjitdutta</dc:creator>
    <dc:date>2023-11-13T11:20:40Z</dc:date>
    <item>
      <title>Database Host details are missing(host_unavailable)</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Database-Host-details-are-missing-host-unavailable/ta-p/228521</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many times users complaint about the Host details which are missing or not showing in Database services. Question is “Why it should show?” or “Why it should not show?”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Database services are detected/determined based on the calls that are being made by several services within the application call hierarchy. Dynatrace doesn't consider methods, but rather commits, queries, and modifications related to your database services. Database calls that are made through monitored Java, .NET, PHP and Node.js processes are monitored automatically as long as the interaction with the database relies on a supported database framework, such as JDBC, ADO.NET, or PDO. When OneAgent is installed on the host that runs your application server, Dynatrace ensures that all database statements are logged, as long as deep monitoring is active for the calling processes and the database request is appended to an existing PurePath® distributed trace. (&lt;A href="https://docs.dynatrace.com/docs/shortlink/database-detection#how-database-activity-is-monitored" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/database-detection#how-database-activity-is-monitored&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let’s see some solution to this problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For Database to show Host related information in Properties, make sure to install Oneagent in that Host which has database running.&lt;/LI&gt;&lt;LI&gt;You can also have an Active gate extension connecting remotely to your database server.&lt;/LI&gt;&lt;LI&gt;Even after installing Oneagent in host where Database is running, you still see a message (host_unavailable) in database properties as below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chiranjitdutta_0-1699874337294.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15483iCDBEBE6C7E29C7E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chiranjitdutta_0-1699874337294.png" alt="chiranjitdutta_0-1699874337294.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Check whether host name and port number if they are being read by “&lt;STRONG&gt;sqlhosts&lt;/STRONG&gt;” file. “&lt;STRONG&gt;&lt;U&gt;SQLH_TYPE=FILE;SQLH_FILE=/deployments/config/sqlhosts&lt;/U&gt;&lt;/STRONG&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If yes then the OneAgent cannot access local configuration files. Thus, the OneAgent cannot resolve the name of the host&lt;/LI&gt;&lt;LI&gt;You would need to check the JDBC connection string if the HOST name is visible in that and Oneagent can then capture the Host name value to display in Properties.&lt;/LI&gt;&lt;LI&gt;There is a mechanism for routing the connection where JDBC sensor of Oneagent should be able to extract the Hostname(DNS resolved) or by IP address from the JDBC connection String.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any of the above scenarios doesn’t solve the issue, please reach out to Support to check it further.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 11:20:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Database-Host-details-are-missing-host-unavailable/ta-p/228521</guid>
      <dc:creator>chiranjitdutta</dc:creator>
      <dc:date>2023-11-13T11:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Database Host details are missing(host_unavailable)</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Database-Host-details-are-missing-host-unavailable/tac-p/228522#M344</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 11:39:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Database-Host-details-are-missing-host-unavailable/tac-p/228522#M344</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-11-13T11:39:35Z</dc:date>
    </item>
  </channel>
</rss>

