# OneAgent plugin not executing

**URL:** <https://community.dynatrace.com/t/oneagent-plugin-not-executing/36721>\
**Category:** Extensions\
**Tags:** dynatrace-managed, oneagent, extensions\
**Created:** [September 30, 2022, 2:12am UTC](https://community.dynatrace.com/t/oneagent-plugin-not-executing/36721 "2022-09-30T02:12:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [September 30, 2022, 2:12am UTC](https://community.dynatrace.com/t/oneagent-plugin-not-executing/36721/1 "2022-09-30T02:12:24Z")

</div>

Hi!&nbsp; Just getting into Dynatrace so bit of a newbie question, so apologies up front if this is a silly one 😎

I’ve built a OneAgent plugin that simply gathers a HOST metric (SysUpTime) and returns it.&nbsp; It

- compiles OK (python wise)s
- passes the simulator fine (shows what I’d expect), executes fine, ‘sends’ metrics
- build and deploy are OK
- upload to the Dynatrace server as a custom plugin is ok
- Global monitoring settings show it as active, even added a host level override to make ‘sure’ it’s assigned so to speak

Once it was all set up, I monitored the log files on the agent and

- it sees the plugin and there are no specific errors etc that are being shown - but it never seems to execute.
- There are no clashes etc that it notes

It seems like I’m missing something super-obvious here, but I just can’t put my finger on it. &nbsp;Any advice on where to proceed from here to try to understand why it is no executing?

plugin.json & .py file attached.

All help/suggestions are greatly appreciated!&nbsp;  
[test.zip](https://community.dynatrace.com/uploads/short-url/ekvk4fRavNE4Z0fH86S83BToWKS.zip) (1.25 KB)

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [September 30, 2022, 10:00am UTC](https://community.dynatrace.com/t/oneagent-plugin-not-executing/36721/2 "2022-09-30T10:00:18Z")

</div>

Hi,

Try to remove:  
“technologies”: [“PYTHON”],

And instead add:

“processTypes”: [0],

Mike

---

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [October 2, 2022, 11:19pm UTC](https://community.dynatrace.com/t/oneagent-plugin-not-executing/36721/3 "2022-10-02T23:19:56Z")

</div>

Hi Mike,

Thanks for the info - it&nbsp;_seems_ to have worked, although I’m still getting weird behavior (well.. unexpected on my part anyway&nbsp;😀 ).

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’:

_2022-10-02 23:12:21.403 UTC [00000428] info [native] 1064(MainThread) - [do] Plugin loop status: time\_taken: 0.0, engines\_info: ['\<PluginEngine, meta\_name:custom.python.test.sysuptime\_plugin ’_  
_'id:0x1b0146b9ca0\>, executions:17 ',_  
_'\<PluginEngine, meta\_name:ruxit.perfmon.dotnetV4 id:0x1b0146b9760\>, ’_  
_'executions:17 ',_  
_'\<PluginEngine, meta\_name:dynatrace.python.ntp id:0x1b0147efe80\>, ’_  
_'executions:0 ',_  
_'\<PluginEngine, meta\_name:dynatrace.python.heartbeat id:0x1b014924340\>, ’_  
_'executions:17 '],_

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.&nbsp; &nbsp;I’ve given it about 30 minutes since it started running correctly and no dice.

Anything you can see that might be stopping that part?

Thanks for the help!

Thoughts?

---

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [October 3, 2022, 12:01am UTC](https://community.dynatrace.com/t/oneagent-plugin-not-executing/36721/4 "2022-10-03T00:01:24Z")

</div>

Oops..&nbsp; scratch the second comment (no data)..&nbsp; I appear to have had an attack of stoopid and somehow removed the code to actually&nbsp;_send the data_..&nbsp; added that back in and everything’s now fine..&nbsp; Thanks Mike - very much appreciated!
