最近在安装配置hyperic agent 5.0的时候总碰到这个错误,沟通了好久才从找到这个解决方案,跟大家分享一下:
* Stop the agent Windows service.
* Make sure all the agent processes are down - wrapper and Java processes.
* Verify that the the path %SystemRoot%\TEMP exist in the machine.
* If it exists, remove the file:%SystemRoot%\TEMP\agent.encrypt.lock
* Open %AGENT_INSTALL_HOME%\bundles\agent-5.0.0\bin\hq-agent.bat(%AGENT_INSTALL_HOME% is probably C:\hyperic\hyperic-hqee-agent-5.0.0)
** Search for the following text:
set CLIENT_CMD="%HQ_JAVA_HOME%\bin\java"
** And replace it with the text:
set CLIENT_CMD="%HQ_JAVA_HOME%\bin\java"-Djava.io.tmpdir="%SystemRoot%\TEMP"
** The rest of the line should stay as is.
* Open%AGENT_INSTALL_HOME%\bundles\agent-5.0.0\conf\wrapper.conf(%AGENT_INSTALL_HOME% is probably C:\hyperic\hyperic-hqee-agent-5.0.0)
** Look for the wrapper.java.additional properties section.
** Add the following new line at the end of the section.Don't forget to replace the XXX with the correct number.
wrapper.java.additional.XXX=-Djava.io.tmpdir=%SystemRoot%\TEMP
* Start the agent in the usual way.