28 Aug 2026
06:32 AM
- last edited on
28 Aug 2026
07:04 AM
by
MaciejNeumann
[Edit from the Moderator: Translation from Google:
I am trying to find a way to enable or disable ptrace in a OneAgent 1.333 environment, but I haven't found a working method.
Here is what I have tested:
1. I opened the following configuration file:
/var/lib/dynatrace/oneagent/agent/config/ruxitagentproc.conf
2.I added the following item to the [general] section (using 'on' to enable and 'off' to disable):
enablePtrace off
3. I restarted OneAgent.
After the restart, I checked the configuration file again and found that the 'enablePtrace off' entry had been automatically removed.
Questions:
1. What is the supported method for enabling or disabling ptrace in OneAgent 1.333?
2. Is it expected behavior for the 'enablePtrace' parameter to be removed from 'ruxitagentproc.conf' after restarting OneAgent?
3. How can I verify whether OneAgent is actually using ptrace at runtime, rather than another monitoring mechanism?
I would greatly appreciate any relevant information or documentation.
]
OneAgent 1.333環境でptraceを有効または無効にする方法を調べていますが、有効な方法が見つかりません。
/var/lib/dynatrace/oneagent/agent/config/ruxitagentproc.conf
enablePtrace をオフにする
参考になる情報や資料があれば大変ありがたいです。
28 Aug 2026 09:20 AM
ruxitagentproc.conf is regenerated from server-side config on restart that's why your manual enablePtrace off entry got wiped. It's not meant for persistent hand-editing.
enablePtrace isn't a documented/supported parameter in OneAgent's public config reference, so I can't confirm the correct syntax or behavior.
For supported config changes, use oneagentctl --get-agent-config / --set-agent-config instead of editing the conf file directly.
To check what mechanism is actually used at runtime, check the OneAgent logs (/var/lib/dynatrace/oneagent/log/) for that process — it logs whether it attached via LD_PRELOAD injection or ptrace.
Since this isn't in the standard docs, I'd suggest opening a support ticket with Dynatrace for a definitive answer on 1.333 behavior.
Thanks,
Sujit
28 Aug 2026 10:30 AM
Thank you for your response.
I checked the help for `oneagentctl`, but neither “--get-agent-config” nor “--set-agent-config”
was listed as an available option.
Based on the above, I understand that modifying `ruxitagentproc.conf` directly may be difficult, but is there really no alternative?
Featured Posts