Greetings,
After looking at these errors for several months, I got around to actually looking into the script. Here's a short fix:
248 # Resolve the os
249 #DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
250 DIST_OS=`uname -s | tr -s '[:upper:]' '[:lower:]' | tr -d '[:blank:]'`
251 DIST_BITS="32"
252 case "$DIST_OS" in
253 'sunos')
(i.e. single-quote the argument for tr)
Second, On sunos, hyperic is still using quite archaic /usr/ucb/ps. Perhaps using pgrep could simplify things, like this:
% :/home/hyperic/agent-4.1.2/bundles/agent-4.1.2-1053/bin [19:26] <77> pgrep wrapper
27854
Just my $.02
Regards,
/David