How can I stop/restart OneAgent?

You can easily disable Dynatrace monitoring for individual hosts, process groups, or applications:

  1. Go to Settings > Monitoring overview.
  2. Click the Hosts, Process groups, or Applications tab to access the monitoring switches for individual entities.
  3. Slide the Monitoring switch to the Off position.
  4. Restart all processes for which monitoring has been disabled.

Stopping OneAgent using the command line

If you use configuration management tools like Puppet or Ansible, you can alternatively stop the OneAgent service using the following command:

  • For Linux: service oneagent stop, where oneagent is the init.d script for OneAgent.

  • For Windows: net stop "Dynatrace OneAgent", where Dynatrace OneAgent is the service name for OneAgent.

  • For AIX: /etc/rc.d/oneagent stop invoked with root privileges, where /etc/rc.d/oneagent is where the OneAgent binary is located.

Note: If you stop OneAgent service, monitoring will be disabled until the service is restarted.

Starting OneAgent using the command line

To start Dynatrace OneAgent again, use the following command:

  • For Linux: service oneagent start, where oneagent is the init.d script for OneAgent.

  • For Windows: net start "Dynatrace OneAgent", where Dynatrace OneAgent is the service name for OneAgent.

  • For AIX: /etc/rc.d/oneagent start invoked with root privileges, where /etc/rc.d/oneagent is where the OneAgent binary is located.

Learn more about how Dynatrace interacts with your OS.