When a custom plugin (running a command) is executed, which user / access rights are used by the agent?
I need the number of open files for a specific process, but the user that runs the custom plugin returns 0. I'm assuming due to missing permissions. If I try this directly on the host with the root, I get a specific value.
Any thoughts on how to handle this would be much appreciated.
If I remember that correctly, it's executed by the oneagentplugin process. This process runs as the non-privileged user (defaults to dtuser if not specified otherwise at oneagent installation time).