I’ve noticed that the location of liboneagentproc.so on linux installation seems to have moved at some point/update?
In the past sysadmins added the library path to LD_PRELOAD (per process) to allow injection into specific processes only. Back then the way to do this was by pointing to
Yes and no
The path depends on the Linux distribution and bitness. And it does not reference to /opt anymore but to the /lib (main system libraries or how is this called) - I mainly to ensure it is accessible every time the system boots. Inaccessible library specified in preload can be a pain.
This was surprising, i had same issue and tried to figure out what went wrong, later on found directory structure has been changed from /opt to /lib in few cases…
Something definitely has changed…
Even the documentation for manual application level injection still states to use the library at /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so but it doesn’t exist anymore.
I agree with @Julius_Loman on having it at a system path makes more sense and creates less room for error, but for existing installations simply removing the “old” path without a fallback can cause some nasty surprises!
Nothing in the release notes either …
@r_weber one needs to distinguish manual injection (where it is correct to use the file path to the oneagent installation directory).
I believe the path is changed on OneAgent upgrades where the liboneagentproc is redeployed each time correctly. For example - if you install 32bit support, the installer will also add 32bit liboneagentproc to system libraries.