VMware Cloud Community
dl441
Contributor
Contributor

Questions about the custom jmx plugin

Hyperic recognized my custom plugin xml and show the service I've added to the 'SUN JVM 1.5' under 'RESOURCES' tab. However, when I clicked on the link the following error occurred.

org.hyperic.hq.appdef.shared.ServiceNotFoundException: 3:10135 not found at org.hyperic.hq.appdef.shared.AppdefEntityNotFoundException.build

and the following error was logged into server.log.

2007-05-22 18:59:30,564 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract boolean org.hyperic.hq.bizapp.shared.ControlBoss.isControlSupported(int,org.hyperic.hq.appdef.shared.AppdefResourceValue) throws org.hyperic.hq.auth.shared.SessionNotFoundException,org.hyperic.hq.auth.shared.SessionTimeoutException,java.rmi.RemoteException, causedBy:
java.lang.NullPointerException
at org.hyperic.hq.product.PluginInfo.<init>(PluginInfo.java:82)


Please let me know if anyone has any idea.
'HyperMetricService' has getAA() method and the xml file as follows:
---------------------------------------------------------------------------------------------------------------------

<?xml version="1.0"?>

<plugin>

<service name="Hyper Metric Service"
server="Sun JVM" version="1.5">

<property name="OBJECT_NAME"
value="DefaultDomain:service=HyperMetricService"/>

<property name="AUTOINVENTORY_NAME"
value="%platform.name% Hyperic Metric Service"/>

<plugin type="autoinventory"/>

<plugin type="measurement"
class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/>

<plugin type="control"
class="org.hyperic.hq.product.jmx.MxControlPlugin"/>
<filter name="template" value="${OBJECT_NAME}:${alias}"/>

<metric name="Availability" indicator="true"/>

<metric name="AA"
collectionType="trendsup"
indicator="true"/>
</service>
</plugin>
Reply
0 Kudos
1 Reply
sadeMan
Contributor
Contributor

I see one thing different in your xml then in mine. In each metric tag I have then defined what alias is like so:

<metric name="Availability"
alias="Availability"
indicator="true"/>

I don't know if that will fix the problem or not.

Have fun,
Brian
Reply
0 Kudos