For each JVM being monitored, were enabled in the WebSphere console.
everything configured fine including compiling the "build.xml" using ant and 1.7 jre to produce was agent.jar.
When I ran run.sh I got the following:
[/usr/local/wasagent]# ./run.sh
++ dirname ./run.sh
+ cd .
+ JAVA_HOME=/opt/WebSphere85/AppServer/java_1.7_64/
+ JAVA_OPTS='-Dwasagent.host=127.0.0.1 -Dwasagent.port=9090 -Dwasagent.configuration=wasagent.properties'
+ CLASSPATH=.:wasagent.jar
++ find lib -name '*.jar'
+ for jar in '$(find "lib" -name '\''*.jar'\'')'
+ CLASSPATH=.:wasagent.jar:lib/jetty-servlet-7.6.2.v20120308.jar
+ for jar in '$(find "lib" -name '\''*.jar'\'')'
+ CLASSPATH=.:wasagent.jar:lib/jetty-servlet-7.6.2.v20120308.jar:lib/com.ibm.ws.security.crypto.jar
+ for jar in '$(find "lib" -name '\''*.jar'\'')'
+ CLASSPATH=.:wasagent.jar:lib/jetty-servlet-7.6.2.v20120308.jar:lib/com.ibm.ws.security.crypto.jar:lib/com.ibm.ws.admin.client_8.5.0.jar
+ for jar in '$(find "lib" -name '\''*.jar'\'')'
+ CLASSPATH=.:wasagent.jar:lib/jetty-servlet-7.6.2.v20120308.jar:lib/com.ibm.ws.security.crypto.jar:lib/com.ibm.ws.admin.client_8.5.0.jar:lib/com.ibm.ws.webservices.thinclient_8.5.0.jar
+ for jar in '$(find "lib" -name '\''*.jar'\'')'
+ CLASSPATH=.:wasagent.jar:lib/jetty-servlet-7.6.2.v20120308.jar:lib/com.ibm.ws.security.crypto.jar:lib/com.ibm.ws.admin.client_8.5.0.jar:lib/com.ibm.ws.webservices.thinclient_8.5.0.jar:lib/servlet-api-2.5.jar
+ /opt/WebSphere85/AppServer/java_1.7_64//bin/java -Xmx16m -cp .:wasagent.jar:lib/jetty-servlet-7.6.2.v20120308.jar:lib/com.ibm.ws.security.crypto.jar:lib/com.ibm.ws.admin.client_8.5.0.jar:lib/com.ibm.ws.webservices.thinclient_8.5.0.jar:lib/servlet-api-2.5.jar -Dwasagent.host=127.0.0.1 -Dwasagent.port=9090 -Dwasagent.configuration=wasagent.properties net.wait4it.nagios.wasagent.core.WASAgent
When I executed the was agent.sh script with debugging turned on I got the following:
[/usr/local/wasagent]# ./wasagent.sh 'hostname=ssc-prd-dmav1-016.ba.ssa.gov&port=8882&jvm=heapUsed,90,95'
+ HOST=127.0.0.1
+ CONNECTOR=9090
++ wget -O -
http://127.0.0.1:9090/wasagent/WASAgent '--post-data=hostname=XXX&port=8882&jvm=heapUsed,90,95'
+ DATA=
+ '[' 8 '!=' 0 ']'
+ exit 2
I received no data. I also know the JVM's are enabled because we run Introscope on the server. All the work was done on the Nagios Client.
Any and all help would be VERY appreciated. I need to prove this work for us to make a large purchase.