OneAgent Uninstallation in Infrastructure Monitoring Mode – Processes Requiring Restart

I am planning to uninstall OneAgent that is running in Infrastructure Monitoring Mode (infra-only).

How can I identify which processes require a restart after uninstalling OneAgent?

Also, for processes that belong to the “Linux System” process group in Dynatrace, is it necessary to restart them individually as well?

For reference, I ran the following command on the host and found that the OneAgent library appears to be loaded into many processes:

sudo grep -l liboneagentproc.so /proc/*/maps

The results included processes such as systemd, sshd, crond, chronyd, and httpd, so I’m unsure which processes should be considered restart targets.

I would appreciate any guidance or best practices regarding this.

Thank you.

Hello @Nakazato_IIM ,

When OneAgent is installed, it adds a small helper file (liboneagentproc.so) to every program that starts after that. That’s why you see it in systemd, sshd, crond, httpd, and the rest.

In infra-only mode, this helper just sits there. It doesn’t change how the programs work.

So, What happens when we uninstall?

->New programs that start won’t get the helper anymore. Programs that were already running still have a copy of it in their memory, but since OneAgent is gone, that copy just sits there doing nothing. It’s not harmful. It goes away when the program restarts.

Now answering your question. How can I identify which processes require a restart after uninstalling OneAgent?

-> No, you don’t need to restart these.
In infra-only mode no code modules (Java, Apache, PHP, etc.) are injected, so this is just the small bootstrap library. Nothing is actually instrumented.

  1. Best: reboot the host in the next maintenance window. That clears everything at once.
  2. If you can’t reboot: restart only the application processes that matter (for example httpd). The system daemons will clear at the next patching reboot.

Post uninstall just follow this.

  1. Confirm the OneAgent service/process is no longer running.
    • Linux: systemctl status oneagent
  2. Remove leftover OneAgent directories and logs.
  3. Verify no OneAgent extensions or custom plugins remain on the host.

Cheers! RN