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

Is there any way to disable auto restart of Oneagent post server reboot?

SachinJindal
Helper

Is there any way to disable auto restart of Oneagent post server reboot?

7 REPLIES 7

ChadTurner
DynaMight Legend
DynaMight Legend

If you turn off monitoring via the Dynatrace UI that should solve your problem 

 

-Chad

possible to perform using command line? so the init services which are responsible for start doesnt do anything if we disable.

@SachinJindal you can stop oneagent from being started by modifying the systemd unit file (Linux) / configuring the sysv (Linux) or using services (Windows).

What is the use case here you are trying to solve? I'd not recommend disabling the startup of oneagent and prefer the UI or API method which @ChadTurner suggests.

Agent disabled in Dynatrace does not perform any actions except for sending heartbeats to Dynatrace.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

just wanted to stop the Dynatrace for quite some days  and it shouldnt startup if Servers are rebooted assuming we dont have DT UI access

Then only way is to modify the startup of the agent itself. Not a great idea, since you can manage it from Dynatrace UI/API afterwards.
Anyway, I don't recommend shutting down OneAgent unless there are really very good reasons. I recommend to either get access to the UI/API so you can manage it from there. Doing manual startup changes is discouraged in general.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

ChadTurner
DynaMight Legend
DynaMight Legend

You can also leverage the Services portal (Assuming you have SaaS access) which lives outside your Dynatrace UI to enable/disable the oneagent. 

-Chad

Hello, Assuming Linux OS -

The doc page is here: Stop/restart OneAgent on Linux but this doesn't answer your specific question directly.

OneAgent is installed as a system service, so you can use systemctl commands to disable or enable, example:

   $ sudo systemctl disable oneagent.service

   $ sudo systemctl enable oneagent.service

You'll need 'root' - with related complications. If you have root, then I'd anticipate you should be familiar with systemctl, hence please consider above advice to disable/enable from cluster side (which admittedly still lets OneAgent initiate at the OS service level).

 

 

Featured Posts