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.
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?
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.
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:
TCP connectivity rate for process 'Processname' on host 'hostname' has decreased to 0 %
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: