<?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 OneAgent plugin not executing in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195498#M2427</link>
    <description>&lt;P&gt;Hi!&amp;nbsp; Just getting into Dynatrace so bit of a newbie question, so apologies up front if this is a silly one &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've built a OneAgent plugin that simply gathers a HOST metric (SysUpTime) and returns it.&amp;nbsp; It&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;compiles OK (python wise)s&lt;/LI&gt;
&lt;LI&gt;passes the simulator fine (shows what I'd expect), executes fine, 'sends' metrics&lt;/LI&gt;
&lt;LI&gt;build and deploy are OK&lt;/LI&gt;
&lt;LI&gt;upload to the Dynatrace server as a custom plugin is ok&lt;/LI&gt;
&lt;LI&gt;Global monitoring settings show it as active, even added a host level override to make 'sure' it's assigned so to speak&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Once it was all set up, I monitored the log files on the agent and&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;it sees the plugin and there are no specific errors etc that are being shown - but it never seems to execute.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;There are no clashes etc that it notes&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like I'm missing something super-obvious here, but I just can't put my finger on it. &amp;nbsp;Any advice on where to proceed from here to try to understand why it is no executing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plugin.json &amp;amp; .py file attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All help/suggestions are greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 09:02:41 GMT</pubDate>
    <dc:creator>ewoelkerling</dc:creator>
    <dc:date>2023-05-16T09:02:41Z</dc:date>
    <item>
      <title>OneAgent plugin not executing</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195498#M2427</link>
      <description>&lt;P&gt;Hi!&amp;nbsp; Just getting into Dynatrace so bit of a newbie question, so apologies up front if this is a silly one &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've built a OneAgent plugin that simply gathers a HOST metric (SysUpTime) and returns it.&amp;nbsp; It&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;compiles OK (python wise)s&lt;/LI&gt;
&lt;LI&gt;passes the simulator fine (shows what I'd expect), executes fine, 'sends' metrics&lt;/LI&gt;
&lt;LI&gt;build and deploy are OK&lt;/LI&gt;
&lt;LI&gt;upload to the Dynatrace server as a custom plugin is ok&lt;/LI&gt;
&lt;LI&gt;Global monitoring settings show it as active, even added a host level override to make 'sure' it's assigned so to speak&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Once it was all set up, I monitored the log files on the agent and&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;it sees the plugin and there are no specific errors etc that are being shown - but it never seems to execute.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;There are no clashes etc that it notes&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like I'm missing something super-obvious here, but I just can't put my finger on it. &amp;nbsp;Any advice on where to proceed from here to try to understand why it is no executing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plugin.json &amp;amp; .py file attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All help/suggestions are greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:02:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195498#M2427</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-05-16T09:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oneagent plugin not executing</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195516#M2428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to remove:&lt;BR /&gt;"technologies": ["PYTHON"],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And instead add:&lt;/P&gt;
&lt;P&gt;"processTypes": [0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 10:00:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195516#M2428</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2022-09-30T10:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oneagent plugin not executing</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195645#M2433</link>
      <description>&lt;P&gt;Hi Mike,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the info - it&amp;nbsp;&lt;EM&gt;seems&lt;/EM&gt; to have worked, although I'm still getting weird behavior (well.. unexpected on my part anyway&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the plugin logs agent side I now see entries like the below, and in the GUI I can see one host (my test host) associated and 'monitoring correctly':&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2022-10-02 23:12:21.403 UTC [00000428] info [native] 1064(MainThread) - [do] Plugin loop status: time_taken: 0.0, engines_info: ['&amp;lt;PluginEngine, meta_name:custom.python.test.sysuptime_plugin '&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'id:0x1b0146b9ca0&amp;gt;, executions:17 ',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'&amp;lt;PluginEngine, meta_name:ruxit.perfmon.dotnetV4 id:0x1b0146b9760&amp;gt;, '&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'executions:17 ',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'&amp;lt;PluginEngine, meta_name:dynatrace.python.ntp id:0x1b0147efe80&amp;gt;, '&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'executions:0 ',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'&amp;lt;PluginEngine, meta_name:dynatrace.python.heartbeat id:0x1b014924340&amp;gt;, '&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'executions:17 '],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strangely though, it doesn't seem to be sending the data through - I can't see it in the metrics explorer (although I can see the entry for the metric with no data), and same for API query.&amp;nbsp; &amp;nbsp;I've given it about 30 minutes since it started running correctly and no dice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anything you can see that might be stopping that part?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 23:19:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195645#M2433</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2022-10-02T23:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oneagent plugin not executing</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195646#M2434</link>
      <description>&lt;P&gt;Oops..&amp;nbsp; scratch the second comment (no data)..&amp;nbsp; I appear to have had an attack of stoopid and somehow removed the code to actually&amp;nbsp;&lt;EM&gt;send the data&lt;/EM&gt;..&amp;nbsp; added that back in and everything's now fine..&amp;nbsp; Thanks Mike - very much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 00:01:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-not-executing/m-p/195646#M2434</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2022-10-03T00:01:24Z</dc:date>
    </item>
  </channel>
</rss>

