25 Jan 2024 10:35 PM - last edited on 07 Mar 2024 08:21 AM by Michal_Gebacki
Hi Dynatrace community
I need to change the monitoring port for oneagent, do you know what is the command to change the monitoring port? the monitoring ports that use oneagent are 50000 to 60000, we need to change this ports because the customer ocupate this ports for your application.
Could you help us please.
Solved! Go to Solution.
25 Jan 2024 11:38 PM - edited 25 Jan 2024 11:39 PM
The ports the oneagentos service uses should be picked at random from available ports on the host itself and it might also change every few minutes as we switch from endpoint to endpoint. But you can change the watch dog port so it doesn't clash with the monitoring ports the customer is using.
Use the --set-watchdog-portrange=arg parameter to change the watchdog listening port range to <arg>. The <arg> must contain two port numbers separated by a colon (:). For example 50000:50100. The maximum supported port range is from 1024 to 65535. The port range must cover at least 4 ports. The port number starting the range must be lower.
25 Jan 2024 11:52 PM
Hi Kobecharles
Tank you very much for the help, this command that you indicatedus is perfect
25 Jan 2024 09:22 PM
Hi Dynatrace community
I need to change the monitoring port for oneagent, do you know what is the command to change the monitoring port? the monitoring ports that use oneagent are 50000 to 60000, we need to change this ports because the customer ocupate this ports for your application.
Could you help us please.
Best regard.