Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I enable or disable ptrace in OneAgent 1.333, and how can I verify whether OneAgent is using ptrace?

Nakazato_IIM
Frequent Guest

[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を有効または無効にする方法を調べていますが、有効な方法が見つかりません。

私がテストしたもの

  1. 以下の設定ファイルを開きました。
    /var/lib/dynatrace/oneagent/agent/config/ruxitagentproc.conf
  2. [general] セクションに以下の項目を追加しました(有効にするには on、無効にするには off を使用します)。
    enablePtrace をオフにする
  3. OneAgentを再起動しました。
再起動後、設定ファイルを再度確認したところ、enablePtrace off のエントリが自動的に削除されていることがわかりました。
 

質問

  1. OneAgent 1.333でptraceを有効化または無効化するためのサポートされている方法は何ですか?
  2. OneAgentの再起動後にruxitagentproc.confからenablePtraceパラメータが削除されるのは想定される動作ですか?
  3. OneAgentが実行時に他の監視メカニズムではなく、実際にptraceを使用しているかどうかを確認するにはどうすればよいですか?

参考になる情報や資料があれば大変ありがたいです。

2 REPLIES 2

sujit_k_singh
Leader

Hi @Nakazato_IIM 

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

Dynatrace Professional Certified

Nakazato_IIM
Frequent Guest

 

@sujit_k_singh 

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