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.
Solved! Go to Solution.
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.
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
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.
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 %