<?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>topic Re: Database agent MySQL in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Database-agent-MySQL/m-p/735294#M9326</link>
    <description>&lt;P&gt;Do you want to use our dedicated database agent or do you want to install the database extension for the machine agent?&lt;/P&gt;

&lt;P&gt;If you look for the first, you'll find the documentation here:&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO43/Database+Visibility" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Database+Visibility&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For the extension you need to configure the YAML file to point to your database and the path to the YAML in the monitor.xml.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Since this is an extension it will run with the privileges of the machine agent. So check that the files of the extension are readable by the user running the machine agent.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 15:53:07 GMT</pubDate>
    <dc:creator>Severin_Neumann</dc:creator>
    <dc:date>2017-06-07T15:53:07Z</dc:date>
    <item>
      <title>Database agent MySQL</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Database-agent-MySQL/m-p/735293#M9325</link>
      <description>&lt;P&gt;I'm trying to install the dbagent...&lt;/P&gt;

&lt;P&gt;01. Select database type: MY SQL&lt;/P&gt;
&lt;P&gt;02. Download&lt;/P&gt;
&lt;P&gt;03. Unzip&lt;/P&gt;
&lt;P&gt;04. Do i need to configure the YAML file?&lt;/P&gt;


&lt;PRE&gt;mySQL:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: "Local MySQL"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host: "localhost"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port: 3388
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user: "root"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Provide password or passwordEncrypted and encryptionKey
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password: "root"
&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passwordEncrypted:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;encryptionKey:
&amp;nbsp;
&amp;nbsp;#timeout for the metric collector thread
&amp;nbsp;threadTimeout: 30
&amp;nbsp;
&amp;nbsp;# number of concurrent tasks
&amp;nbsp;numberOfThreads: 5
&amp;nbsp;
&amp;nbsp;#prefix used to show up metrics in AppDynamics
&amp;nbsp;metricPrefix:&amp;nbsp; "Custom Metrics|MySQL|"&lt;/PRE&gt;
&lt;P&gt;05. To validate YAML file&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.yamllint.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.yamllint.com/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;06. To configure monitor /&amp;lt;dbagent&amp;gt;/monitors/DatabaseMonitor/monitor.xml&lt;/P&gt;
&lt;PRE&gt;&amp;lt;monitor&amp;gt;
    &amp;lt;name&amp;gt;DBMonitor&amp;lt;/name&amp;gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;
    &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
    &amp;lt;description&amp;gt;Monitors DBs&amp;lt;/description&amp;gt;
    &amp;lt;monitor-configuration&amp;gt;
    &amp;lt;/monitor-configuration&amp;gt;
    &amp;lt;monitor-run-task&amp;gt;
        &amp;lt;type&amp;gt;java&amp;lt;/type&amp;gt;
        &amp;lt;execution-style&amp;gt;scheduled&amp;lt;/execution-style&amp;gt;
        &amp;lt;java-task&amp;gt;

            &amp;lt;impl-class&amp;gt;
                com.singularity.ee.agent.dbagent.task.monitor.DBAgentMonitor
            &amp;lt;/impl-class&amp;gt;
            &amp;lt;argument name="config-file" is-required="true" default-value="/opt/dbagent/monitors/MySQLMonitor/config.yml" /&amp;gt;
            &amp;lt;factory-method&amp;gt;&amp;lt;/factory-method&amp;gt;
            &amp;lt;invoke-method&amp;gt;&amp;lt;/invoke-method&amp;gt;
        &amp;lt;/java-task&amp;gt;
    &amp;lt;/monitor-run-task&amp;gt;
&amp;lt;/monitor&amp;gt;
~
&lt;/PRE&gt;
&lt;P&gt;07. start&lt;/P&gt;
&lt;P&gt;$ ./start-dbagent&lt;/P&gt;

&lt;P&gt;Is it need the appagent user and de dbagent user to be the same user?&lt;/P&gt;
&lt;P&gt;Is it need rights to&amp;nbsp;appagent user to execute the dbagent?&lt;/P&gt;


&lt;P&gt;I'm getting errors on log files&lt;/P&gt;

&lt;P&gt;Keystore file /opt/dbagent/conf/cacerts.jks was not found&lt;/P&gt;
&lt;P&gt;[&amp;lt;Default Database Agent&amp;gt;-Scheduler-1] 07 Jun 2017 15:00:48,997 ERROR NodeMonitorManager - Unable to read monitor configuration from [/opt/dbage nt/monitors/MySQLMonitor/monitor.xml].. Are the file and directory permissions set correctly?&lt;/P&gt;

&lt;P&gt;Tks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Database-agent-MySQL/m-p/735293#M9325</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-06-07T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Database agent MySQL</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Database-agent-MySQL/m-p/735294#M9326</link>
      <description>&lt;P&gt;Do you want to use our dedicated database agent or do you want to install the database extension for the machine agent?&lt;/P&gt;

&lt;P&gt;If you look for the first, you'll find the documentation here:&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO43/Database+Visibility" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Database+Visibility&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For the extension you need to configure the YAML file to point to your database and the path to the YAML in the monitor.xml.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Since this is an extension it will run with the privileges of the machine agent. So check that the files of the extension are readable by the user running the machine agent.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Database-agent-MySQL/m-p/735294#M9326</guid>
      <dc:creator>Severin_Neumann</dc:creator>
      <dc:date>2017-06-07T15:53:07Z</dc:date>
    </item>
  </channel>
</rss>

