Execute dynatrace.sh bash script

Dynatrace Managed software consists of a number of Dynatrace services that are dependent on each other and should be stopped or started in a particular order. You can use the official dynatrace.sh script with additional parameters to properly start, stop, or restart Dynatrace services. By default, the script is located at /opt/dynatrace-managed/launcher/. Make sure the dynatrace.sh script has executable permissions.

You can execute the dynatrace.sh script with a parameter (start, stop, restart, status, check, pid) as described below.

  • start
    Starts all Dynatrace Managed required services in the recommended order.
    [root@localhost]# ./dynatrace.sh start
    
  • stop
    Stops all Dynatrace Managed required services in the recommended order.
    [root@localhost]# ./dynatrace.sh stop
    
  • restart
    Restarts all Dynatrace Managed required services in the recommended order.
    [root@localhost]# ./dynatrace.sh restart
    
  • status
    Displays a list of Dynatrace required services and the status of each, including detailed information about each service:
    [root@localhost]# ./dynatrace.sh status
    
  • check
    Checks the status of iptable rules and the processes for Nodekeeper, Cassandra, Elasticsearch, ActiveGate, Watcher, and Nginx.
    [root@localhost]# ./dynatrace.sh check
    
  • pid
    Displays the process ID for all Dynatrace required services that were started with the dynatrace.sh script.
    [root@localhost]# ./dynatrace.sh pid