I'm running a trial version of vFabric Hyperic (4.5, I think) server on Linux. On a Windows machine, I am running the agent and monitoring a WebSphere 6.1 instance.
The server and agent have hooked up fine and the admin mgmt tool UI displays the details of the Windows host and WebSphere App Server node resources, BUT there is a ? for the availability of the app server node. When I click to see details of the app server node, I see a warning/error that reads
"This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
Please turn on the server, or fix its Configuration Properties."
If I then save the properties, I get a big stack trace in the server:
org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1577)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.enableDefaultMetrics(MeasurementManagerImpl.java:1657)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.handleCreateRefreshEvents(MeasurementManagerImpl.java:1490)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...
Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
at org.hyperic.hq.measurement.agent.client.AgentMonitor.getLiveValues(AgentMonitor.java:191)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.getLiveMeasurementValues(MeasurementManagerImpl.java:1612)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1575)
The agent log file on the WIN box reports:
2010-12-29 17:07:16,417 ERROR [Thread-0] [MeasurementCommandsService] Error getting real time measurement: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
This happens whether or not I start the AGENT with a Sun jvm or IBM jvm, so I am not sure what is going on... To specify the JVM, I changed the agent bin/hq-agent.bat:
set HQ_JAVA_HOME=D:\IBM\WebSphere\AppServerV61\java
which does seem to be how the agent java_home is set... but maybe I am doing this incorrectly. OR is it the server that needs an IBM jvm? I'm unclear from the message whether the server, agent, or both are using the wrong JVM...
The server and agent have hooked up fine and the admin mgmt tool UI displays the details of the Windows host and WebSphere App Server node resources, BUT there is a ? for the availability of the app server node. When I click to see details of the app server node, I see a warning/error that reads
"This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
Please turn on the server, or fix its Configuration Properties."
If I then save the properties, I get a big stack trace in the server:
org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1577)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.enableDefaultMetrics(MeasurementManagerImpl.java:1657)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.handleCreateRefreshEvents(MeasurementManagerImpl.java:1490)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...
Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
at org.hyperic.hq.measurement.agent.client.AgentMonitor.getLiveValues(AgentMonitor.java:191)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.getLiveMeasurementValues(MeasurementManagerImpl.java:1612)
at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1575)
The agent log file on the WIN box reports:
2010-12-29 17:07:16,417 ERROR [Thread-0] [MeasurementCommandsService] Error getting real time measurement: Error contacting resource: The WebSphere plugin needs a IBM JVM !!! (agent jvm=Sun Microsystems Inc.)
This happens whether or not I start the AGENT with a Sun jvm or IBM jvm, so I am not sure what is going on... To specify the JVM, I changed the agent bin/hq-agent.bat:
set HQ_JAVA_HOME=D:\IBM\WebSphere\AppServerV61\java
which does seem to be how the agent java_home is set... but maybe I am doing this incorrectly. OR is it the server that needs an IBM jvm? I'm unclear from the message whether the server, agent, or both are using the wrong JVM...