I'm working on a Dynamic Service Type plugin for 5.8.2 using the guidance in vFabric Hyperic Product Plug-in Development v.5.7 and while my plugin gets instantiated, none of the expected methods (discoverServiceTypes, and discoverServices) are invoked.
I've set up the agent such that the jvm waits for a debug connection from eclipse before proceeding so I can debug it. Further, it appears from inspecting the 5.8.2.2 source code that the plugin must specify the measurement-class, control-class, and template properties.
Can anyone offer suggestions about what might be going on, or where I should look for further details?
This is kind of an odd plugin in that it receives metric data on a server socket, and intends to create the service instance and metric details from its own inventory.
hq-plugin.xml isn't very big, so it's appended.
------------------------
plugin name="walogreceiver" package="org.hyperic.hq.plugin">
<config name="walogreceiverconfig">
<option name="portNumber"
description="port on which to accept connection from the Log Receiver"
default="12343" />
</config>
<property name="PLUGIN_VERSION" value="1.0" />
<property name="template" value="${OBJECT_NAME}:${alias}" />
<property name="measurement-class" value="org.hyperic.hq.plugin.WA_Measurement" />
<property name="control-class" value="org.hyperic.hq.plugin.WA_ControlPlugin" />
<server name="MDM" version="1.0">
<plugin type="autoinventory" class="org.hyperic.hq.plugin.WA_Discovery" />
<plugin type="measurement" class="org.hyperic.hq.plugin.WA_Measurement" />
<config include="walogreceiverconfig" />
<metric name="Availability" indicator="true" />
<metric name="Day's Failed Count" alias="FailedCntDay"
category="UTILIZATION" indicator="true" collectionType="trendsup"
interval="60000" units="none" />
<metric name="Queue Size Minimum" alias="QueueSizeMin"
category="UTILIZATION" indicator="true" collectionType="dynamic"
interval="60000" units="none" />
<metric name="Day's Receive Count" alias="RecvCntDay" category="UTILIZATION"
indicator="false" collectionType="dynamic" interval="60000" units="none" />
<metric name="Day's Send Count" alias="SendCntDay" category="UTILIZATION"
indicator="false" collectionType="dynamic" interval="60000" units="none" />
</server>
--------------
</plugin>