In my last investigation I checked the permissions of the folders inside /tmp
and discovered that my monitors are being copied to the agent with permissions to the root user only. I suspect this is the reason why the elastic-agent
user can't execute that .bin/elastic-synthetics
command.