Exit Code 4: Solaris - custom script

Exit Code 4: Solaris - custom script

Hello,

I'm trying to get a Custom script monitor working on a Solaris box.

Script Body:
DBC="DB Connections"
EVAL=`/home/apa/db_connect_test.sh`
echo Data:'\n'
echo instance'\t'value
echo $DBC:'\t'$EVAL

If I put this script on the Solaris box it runs with out error and outputs the following:
Data:

instance        value
DB Connections: 12

I'm running the script as the same user set in OpManager's stored credentials so, I know that the script *should* work. However, I get this error when testing the script against the server:

Script Result
Exit Code 4
Message Lightning DB Connections:Internal Server Error while processing this request.
 
Data
Instance Value
Raw Output

          

Any help would be greatly appreciated.

Cheers,
Chris O


                New to ADSelfService Plus?