# Synthetic Monitoring Port Extension

**URL:** <https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040>\
**Category:** Extensions\
**Tags:** extensions, synthetic-monitoring\
**Created:** [January 18, 2023, 12:37am UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040 "2023-01-18T00:37:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tnoonan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tnoonan/32/4857_2.png) [@tnoonan](https://community.dynatrace.com/u/tnoonan)\
**Post date:** [January 18, 2023, 12:37am UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/1 "2023-01-18T00:37:11Z")

</div>

Why is it that the Synthetic Monitoring Extension has the option to perform a test using “UDP” protocol in the user interface when only to find out, through support (all day long), that UDP will not work out of the box?&nbsp; And then the only guidance to modify is through a paid engagement with the extensions team.

---

<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:** [January 18, 2023, 8:28am UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/2 "2023-01-18T08:28:25Z")

</div>

Can you send on the support ticket? We’ve got customers using it without any services intervention.

---

<div class="post-metadata">

**Author:** ![tnoonan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tnoonan/32/4857_2.png) [@tnoonan](https://community.dynatrace.com/u/tnoonan)\
**Post date:** [January 18, 2023, 11:58am UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/3 "2023-01-18T11:58:25Z")

</div>

Conversation #122683

---

<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:** [January 18, 2023, 12:17pm UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/4 "2023-01-18T12:17:36Z")

</div>

Thanks, I’ll talk it over with the people that handled the ticket as their information is outdated. They based it off a discussion of mine from 2 years ago when we did not support UDP.

---

<div class="post-metadata">

**Author:** ![tnoonan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tnoonan/32/4857_2.png) [@tnoonan](https://community.dynatrace.com/u/tnoonan)\
**Post date:** [January 18, 2023, 3:08pm UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/5 "2023-01-18T15:08:41Z")

</div>

Thank you, Mike.

After reviewing the thread and the supporting images, why do you think the UDP request would be timing out?&nbsp; I can hit the endpoint/port from the activegate using ncat.

---

<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:** [January 18, 2023, 4:06pm UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/6 "2023-01-18T16:06:38Z")

</div>

Can you drop the ncat command/response?

This is the python code we’re executing for synthetic UDP requests:

```python
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.settimeout(timeout)
sock.connect((ip, port))

sock.sendall(b"")
data = sock.recv(1024)
print(f"Received data: {data}")

```

Could you drop that into a .py file, switch out timeout, ip and port and see if it works?

---

<div class="post-metadata">

**Author:** ![tnoonan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tnoonan/32/4857_2.png) [@tnoonan](https://community.dynatrace.com/u/tnoonan)\
**Post date:** [January 18, 2023, 5:27pm UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/7 "2023-01-18T17:27:45Z")

</div>

It does indeed receive a socket timeout.

ec2-user@ip-172-35-0-123 ~]$ /usr/bin/python3.8 udpTest.py  
Traceback (most recent call last):  
File “udpTest.py”, line 8, in \<module\>  
data = sock.recv(1024)  
socket.timeout: timed out

I noticed from ncat that if I use “-z” for zero i/o it will just report on the success of the connection.&nbsp; If I remove that -z option then it hangs up like they python code.

---

<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:** [May 19, 2023, 10:37am UTC](https://community.dynatrace.com/t/synthetic-monitoring-port-extension/38040/8 "2023-05-19T10:37:03Z")

</div>

This was resolved in the support ticket. The support for UDP is now much improved.
