<?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 Machine Agent Command Watcher Extension - Unable to make an SQL call in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740001#M11694</link>
    <description>&lt;P&gt;I have been trying to find or create a way to monitor an Oracle SQL query for elapsed time. I decided to try to use the Command Watcher extension on the Machine Agent for Linux.&amp;nbsp; I have created a small Java program that takes the system time at the start, opens a connection, runs the query, retrieves the first row of the result set, calculates the elapsed time of the program and then returns that value using an exit() call.&amp;nbsp;&lt;BR /&gt;When I run the program in a linux shell, it functions perfectly. When I configure the Command Watcher to execute the Java program, I consistently receive a "NoClassDefFoundError" when attempting to load java.sql.Date. I have tried to manipulate the classpath to include the rt.jar file directly and still encounter the error.&amp;nbsp;&lt;BR /&gt;Is either the CommandWatcher, or the machine agent in which it runs, configured in such a way as to prevent the use of java.sql package? If so, how can I get around this? If not, what am I missing when attempting to run this program inside of the CommandWatcher?&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 16:52:29 GMT</pubDate>
    <dc:creator>Dale_Chapman</dc:creator>
    <dc:date>2021-06-07T16:52:29Z</dc:date>
    <item>
      <title>Machine Agent Command Watcher Extension - Unable to make an SQL call</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740001#M11694</link>
      <description>&lt;P&gt;I have been trying to find or create a way to monitor an Oracle SQL query for elapsed time. I decided to try to use the Command Watcher extension on the Machine Agent for Linux.&amp;nbsp; I have created a small Java program that takes the system time at the start, opens a connection, runs the query, retrieves the first row of the result set, calculates the elapsed time of the program and then returns that value using an exit() call.&amp;nbsp;&lt;BR /&gt;When I run the program in a linux shell, it functions perfectly. When I configure the Command Watcher to execute the Java program, I consistently receive a "NoClassDefFoundError" when attempting to load java.sql.Date. I have tried to manipulate the classpath to include the rt.jar file directly and still encounter the error.&amp;nbsp;&lt;BR /&gt;Is either the CommandWatcher, or the machine agent in which it runs, configured in such a way as to prevent the use of java.sql package? If so, how can I get around this? If not, what am I missing when attempting to run this program inside of the CommandWatcher?&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 16:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740001#M11694</guid>
      <dc:creator>Dale_Chapman</dc:creator>
      <dc:date>2021-06-07T16:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Machine Agent Command Watcher Extension - Unable to make an SQL call</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740002#M11695</link>
      <description>&lt;P&gt;I contacted AppDynamics support about this and apparently the problem is that the CommandWatcher extension is not currently supported on the latest (21.5.x) generation of the machine agent.&lt;BR /&gt;The fix is to use an older machine agent.&lt;/P&gt;&lt;P&gt;Thanks to everyone who read my question.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740002#M11695</guid>
      <dc:creator>Dale_Chapman</dc:creator>
      <dc:date>2021-06-09T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Machine Agent Command Watcher Extension - Unable to make an SQL call</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740003#M11696</link>
      <description>&lt;P&gt;Thanks for reporting back your findings to the community&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/62699"&gt;@Dale.Chapman&lt;/A&gt;! This is helpful to know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 00:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Machine-Agent-Command-Watcher-Extension-Unable-to-make-an-SQL/m-p/740003#M11696</guid>
      <dc:creator>Jeanie_Kedia1</dc:creator>
      <dc:date>2021-06-16T00:59:38Z</dc:date>
    </item>
  </channel>
</rss>

