When trying to "Get script output" in one of my linux/unix script monitors I keep getting an error msg saying Define monitor columns failed. Originally the script was working and had 6 different things it was checking with unique identifiers, but I stripped it down to 1 thinking maybe a timeout was the issue.. Here's the script body, maybe I'm missing something
#!/usr/bin/ksh
#set -x
status=`ps -ef | grep ora_smon_gpop1 | grep -v grep`
if [[ x$status = x ]]; then
echo "\nStatistic: 0"
echo "\nMessage: $status"
else
echo "\nMessage: $status"
echo "\nStatistic: 1"
fi
******
Originally it was checking for 6 different oracle procs and had unique identifiers for Statistic/Message and it worked. I tried copying the exact original script to a new template and it magically stopped working. Suggestions?