I have a simple extension attribute that's supposed to display an Agent version:
#!/bin/bash
# Check to see if the SentinelOne agent is installed.
# If the agent is installed, report the agent
# version.
printf '<result>'
if result=`/usr/local/bin/sentinelctl version | awk '{print $2 $3}'`; then
printf "$result"
else
printf "Unavailable/Not Installed"
fi
printf '</result>'
When I run this locally on my machine, it works, but running it as an extension attribute doesn't seem to work.
Any suggestions on how to debug this issue?