cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Specify one collector port different form the default

jcamps
Advisor

Hi all,

what is the best way to specify one collector port different form the default, editing the init.d/dynatraceCollector file and putting the listen port in the -listen parameter from DT_OPTARGS or especify the port in the client IDE?

And to specify the collector group?

Regards, Josep Maria


5 REPLIES 5

Babar_Qayyum
Leader

Hello @Josep Maria C.

If the collector is additional instance then I would like to go with the below script/command.

dtcollector -service install -instance MyCollector -listen :9997

If there is a new installation of the collector then the easiest way is to change from the IDE.

Regards,

Babar


Hi Babar,

thanks for your quick response, so what are the differences between the two options?

And if we change the port from the IDE where is the port stored in the collector?

Regards!


Hello @Josep Maria C.

The changes will be stored in the file collector.config.xml on the location e.g. /opt/dynatrace-7.0/collector/conf

Regards,

Babar


Thanks! and last question, if we configure the listen port in the script with -listen,

are the changes from the client (written to the config file) lost and the collector uses the listen port configured in the script?


Hello @Josep Maria C.

Script uses to create additional instances only, therefore, if we assign any port while adding additional instance and later on changes the port from the IDE then the port will be replaced with the new one.

Regards,

Babar