Try to specify the
User attribute instead of 'su -
user' in script.
Extract from Budled Agents Guide:
An application runs in the default context of root. Specify the user name to run an application in a user context.
Under
Optional Attributes for Application agent, see the 'User' attribute:
The user ID for running StartProgram, StopProgram, MonitorProgram, and CleanProgram. The processes specified in the MonitorProcesses list must run in the context of the specified user. Monitor checks the processes to make sure they run in this context.
Type and dimension: string-scalar
Default: root