• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Rob H. · Mar 24, 2014 at 03:28 PM ·

Question on RC script - for dynaTrace server

If the command in our environment to start the dynaTrace server is ‘nohup ./dtserver &’, what parameters should be specified for the RC scripts to function properly?

I am aware I need to change the DT_HOME path to our specific directory but what needs to be added for the ‘nohup’ and ‘&’?

 

# To use this file in your environment, adjusting the following variables:

# - DT_HOME     installation directory of dynaTrace software

# - DT_OPTARGS  optional arguments (e.g. -vm, -instance, -server, etc.)

# - DT_INSTANCE instance name if -instance argument is specified

DT_HOME=/home/dmaaxa0/dynatrace-5.5.0

DT_OPTARGS=

# When using an instance name, ensure that the -instance argument from

# DT_OPTARGS is in sync with the following DT_INSTANCE variable:

# (e.g.: "-instance InstName" requires "DT_INSTANCE=InstName")

DT_INSTANCE=

DT_PRODUCT=Server

DT_BINARY=dtserver

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Reinhard W. · Mar 24, 2014 at 07:21 PM

$DT_OPTARGS is meant to pass arguments to the dynatrace server/collector and not to define how these binaries are beeing launched.

In your case you can modify the script and launch the dynaTrace server differently e.g. from

$DT_HOME/$DT_BINARY - bg $DT_OPTARGS

to

nohup $DT_HOME/$DT_BINARY $DT_OPTARGS &

or - and I think that's the more elegant way - just add the init.d. script to the right runlevels so that the server is started automatically with system start or when entering accoring runlevels. 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Reinhard W. · Mar 24, 2014 at 05:11 PM

Why is the standard startup call that is done in the RC script now working for you?

It uses $DT_HOME/$DT_BINARY -bg $DT_OPTARGS


Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Rob H. · Mar 24, 2014 at 05:20 PM 0
Share


When we have a maintenance window and server is taken down, dynaTrace server (or collector) does not restart automatially. It is necessary for me to login and manually restart processes. Earlier this morning  I modified the DT_HOME to the correct path. So based on what you are saying above with format of $DT_HOME/$DT_BINARY -bg $DT_OPTARGS, if I was trying to execute command: nohup ./dtserver &

DT_HOME is now correct

DT_BINARY was already correct

'DT_OPTARGS=' is empty. Is there where i would enter the & command or do I need to worry about the process stopping (logout) arguments if passed in a RC script? That's why I have the "nohup ./dtserver &" and wondered how to pass these arguments.

  

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A