This content has been marked as final. Show 2 replies
Figured this out on my own...
Custom scripts cannot have anything writing to standard out. Remove any prints or echos. The only exception to this is numbers. If you echo 1, this will become the value of Custom Metric 1. The next thing you echo is the value of Custom Metric 2.
Use &> /dev/null (this was on Linux servers), to get rid of any calls to other scripts that have output.
Echo can be used as long as you pipe the information to some other command.
And for some reason the .bash_profile seemed to interfere sometimes.
Use exit 0 for successful status reports in the service test.
Hope this helps!