Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

Issues getting agents working on FreeBSD 8 (amd64)

$
0
0
No wrappers are provided for FreeBSD amd64 so I thought I'd follow the advice given on many google results and use the nowrapper.sh script ....

hyperic-hq-agent-4.3.0/bundles/agent-4.3.0-1443#  ./bin/hq-agent-nowrapper.sh start
Starting agent
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.hyperic.sigar.FileAttrs.gather(Lorg/hyperic/sigar/Sigar;Ljava/lang/String;)V
        at org.hyperic.sigar.FileAttrs.gather(Native Method)
        at org.hyperic.sigar.FileInfo.fetchInfo(FileInfo.java:432)
        at org.hyperic.sigar.FileInfo.fetchFileInfo(FileInfo.java:452)
        at org.hyperic.sigar.Sigar.getFileInfo(Sigar.java:731)
        at org.hyperic.sigar.FileWatcher.add(FileWatcher.java:63)
        at org.hyperic.sigar.FileWatcher.add(FileWatcher.java:58)
        at org.hyperic.hq.bizapp.agent.client.AgentClient$2.<init>(AgentClient.java:1133)
        at org.hyperic.hq.bizapp.agent.client.AgentClient.initializeAgent(AgentClient.java:1128)
        at org.hyperic.hq.bizapp.agent.client.AgentClient.main(AgentClient.java:1242)


So it's probably having trouble finding libsigar or similar.    I tried installing the sigar FreeBSD port but that didn't help.   I haven't worked much with JNI so not sure what the best way of going about debugging these sorts of library issues are.  

On Hyperic 4.2 it just exited without providing any useful info at all

hyperic-hq-agent-4.2.0.7/bundles/agent-4.2.0.7-1285]# ./bin/hq-agent-nowrapper.sh start
Starting agent
- Invoking agent
- Agent thread running
- Verifying if agent is running...

hyperic-hq-agent-4.2.0.7/bundles/agent-4.2.0.7-1285]# /usr/local/openjdk6//bin/java -Xmx128m -Dsun.net.inetaddr.ttl=60 -Djava.net.preferIPv4Stack=true -Djava.security.auth.login.config=jaas.config -Dagent.install.home=../.. -Dagent.bundle.home=. -Djava.library.path=../../wrapper/lib -Dagent.propFile=../../conf/agent.properties -Dagent.logDir=../../log -Dagent.dataDir=../../data -cp :./lib/AgentClient.jar:./lib/AgentServer.jar:./lib/lather.jar:./pdk/lib/ant.jar:./pdk/lib/backport-util-concurrent-3.1.jar:./pdk/lib/com.springsource.com.sun.xml.bind-2.1.7.jar:./pdk/lib/com.springsource.javax.xml.bind-2.1.7.jar:./pdk/lib/commons-beanutils.jar:./pdk/lib/commons-codec-1.3.jar:./pdk/lib/commons-collections-3.2.jar:./pdk/lib/commons-httpclient-3.1.jar:./pdk/lib/commons-logging.jar:./pdk/lib/dnsjava-2.0.3.jar:./pdk/lib/getopt.jar:./pdk/lib/hq-product.jar:./pdk/lib/hyperic-util.jar:./pdk/lib/jakarta-oro-2.0.7.jar:./pdk/lib/jdom-1.1.jar:./pdk/lib/jsch-0.1.34.jar:./pdk/lib/json.jar:./pdk/lib/junit-3.8.jar:./pdk/lib/junit-4.4.jar:./pdk/lib/jxla.jar:./pdk/lib/log4j-1.2.14.jar:./pdk/lib/sigar.jar:./pdk/lib/snmp4j.jar:./pdk/lib/tomcat-jk.jar:./pdk/lib/ws-commons-util-1.0.2.jar:./pdk/lib/xalan.jar:./pdk/lib/xml-apis.jar:./pdk/lib/xmlrpc-client-3.1.jar:./pdk/lib/xmlrpc-common-3.1.jar:./pdk/lib/xpp3_min-1.1.4c.jar:./pdk/lib/xstream-1.3.1.jar:../../wrapper/lib/wrapper.jar org.hyperic.hq.bizapp.agent.client.AgentClient start
- Invoking agent
- Agent thread running
- Verifying if agent is running...
hyperic-hq-agent-4.2.0.7/bundles/agent-4.2.0.7-1285]# echo $?
255





Anyone have any suggestions?

Viewing all articles
Browse latest Browse all 52618

Trending Articles