09 Jan 2019 03:35 PM - last edited on 07 Sep 2021 03:17 PM by MaciejNeumann
Hi All,
how could ports be monitored in Dynatrace SaaS? Do we need to develop additional plugin or we can use synthetic monitoring? Main idea is to monitor availability of different ports used by our applications.
Thank you,
Konstantin
Solved! Go to Solution.
09 Jan 2019 03:59 PM
Synthetic Basic HTTP Monitors are the out of the box way to do it.
You could write a plugin if you want to do it without consuming DEM units.
HTH,
dave
10 Jan 2019 05:56 PM
Making it a plugin would consume Custom metrics. I don't think its really necessary to do it, since OneAgent is monitoring the network traffic as well. If a monitored service stops listening on a (TCP) port and traffic is still coming to non-listening port (connection refused), it will alert you anyway.
10 Jan 2019 09:51 AM
Your post is already moved by staff to proper one 🙂
Sebastian
02 Jul 2019 04:57 PM
I think I have the same question - I'm trying to determine which ports are in use by each of my applications. We routinely need to audit which ports are required to be open on our Firewall and being able to show which applications are using which port numbers when talking between hosts would be fabulous. Does anyone know where I would event start looking to extract that info or if it is even in there?
23 Oct 2019 10:30 AM
Hello All, could someone please let me know how we can monitor specific TCP ports for a specific server in dynatrace SaaS or Managed.
23 Oct 2019 11:11 AM
I think Julius has answered this in his comment: "If a monitored service stops listening on a (TCP) port and traffic is still coming to non-listening port (connection refused), it will alert you". Of course if there are no connections to that port (i.e. no one "sees" the issue), there won't be an alert either. For a steady 24/7 flow of tests, use a HTTP check.
23 Oct 2019 11:39 AM
Kalle,the above answer monitors all the ports. so now my question is to monitor a specific TCP port on a specific server can we use HTTP synthetic monitor?
23 Oct 2019 11:59 AM
Thanks Kalle, i have setup one HTTP monitor for port monitoring, the monitor is giving the response time details but on availability check it says connection refused. however the port is actually listening on server
23 Oct 2019 12:06 PM
A bit difficult to say with this info, but... I would suggest first making sure there's no firewall blocking that port between the ActiveGate and the target host. Maybe also test the same connection manually with curl or wget from the ActiveGate & see what's the response.
04 Dec 2019 05:54 PM
Hi Srinivas, can you elaborate how you were able to set up TCP port monitor? Any Screenshots would be helpful too. Thanks.
05 Dec 2019 06:07 AM
Hi Biken, we achieved TCP port monitoring using the Out of the box HTTP monitors capability in dynatrace.
here are the detailed steps for setting up TCP port monitoring for a specific port on a specific server:
Implement synthetic enabled activegate
create a firewall rule from synthetic Activegate server to the server which requires TCP port monitoring on that particular port
create a private HTTP monitor using the get method where the request URL looks like: http://ServerIPaddress:TCPport
If the requirement is to monitor all the ports then dynatrace oneagent does this using the service monitoring capability
the alerts look like:
Connectivity problem
TCP connectivity rate for process 'Processname' on host 'hostname' has decreased to 0 %
26 Aug 2021 01:14 PM
Hi Konstantin,
as a partner of Dynatrace we have implemented a solution how to perform port scans in Versio.io. The port scan results can be integrated into the topology of the Dynatrace data. Furthermore you can verify the compliance automatically by rules and send an event directly to the Dynatrace service instance.
Here is some information: https://www.versio.io/import-port-status-scanner-cmdb-configuration-item.html
You can also find us in the Dynatrace Software Intelligance Hub:
https://www.dynatrace.com/hub/detail/versioio/
Regards Matthias
26 Aug 2021 01:54 PM
Use this plugin works great.
dynatrace-api/third-party-synthetic/active-gate-extensions/extension-third-party-port at master · Dy...