Check Dynatrace OneAgent Service Status on Your Hosts

Summary: The post explains how to confirm whether Dynatrace OneAgent is running on your system. It includes command-line checks for Linux and Windows environments and troubleshooting tips for inactive agents.

Hi,

Can we check whether oneagent is running or not by the following CLI command?

・Linux

service oneagent status

・Windows

sc query Dynatrace OneAgent | findstr STATE

Note) I got the service names for oneagent from “How can I stop/restart OneAgent?”.

Best Regards,

Kohei

Yes. Those are correct. Do you have issues with these?

Thanks,
Hayden

On Windows, the service name needs to be quoted as:

"Dynatrace OneAgent"

But otherwise these are indeed correct.

Thanks for confirmation Tomasz!

Hi Hayden and Tomasz,

Thanks!