Menu

#4602 [HHQ-3781] Agent will not start in certain environments on s

Bug
open
None
3
2012-10-09
2011-01-11
No

http://jira.hyperic.com/browse/HHQ-3781
While testing tc Server we stumbled upon an issue that cause the agent not to start, see https://issuetracker.springsource.com/browse/TCSRV-1245



Quick Summary:


The "tr" command being used "uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]" does not work unless 1) the locale is set in the environment 2) the locale is set to something other then the UTF-8 locale.


It will give the user "Bad String" as the result.



Note: As long as LC_CTYPE environment variable on solaris was set to a locale other than UTF-8 "tr" command worked fine.



We can remove the locale requirement if we change the command in the agent to: uname -s | tr "[A-Z]" "[a-z]" |tr -d ' '



I have not tested this on every platform, but I did test on Mac OSX, and solaris, and it worked fine without the locale set.



I am not saying this needs to be done, but it is something we should be aware of and that we can probably avoid this issue completely, by changing to the other command and testing the other platforms.

Discussion

Anonymous
Anonymous

Add attachments
Cancel