vCenter

 View Only

Plugin for Java Wrapper Service

  • 1.  Plugin for Java Wrapper Service

    Posted Jun 19, 2008 12:36 AM
    Hi,

    We use Hyperic to monitor some JMX servers. Recently, we added Java Wrapper Service to the JMX servers so they could be run as Windows services. Now I don’t see our metrics. The servers are autodiscovered. The JVM metrics are displayed e.g. Heap memory Max and Heap Memory Used. Our metrics are not displayed. I can see the MBean, and metrics in JConsole, but not in HQ. The plugin looks like

    <plugin>
    <!-- attach a new service type to the Sun JVM 1.5 server type -->
    <service name="RAPID-CARLAR"
    server="Sun JVM" version="1.5">

    <!-- define ObjectName template used for auto-discovery and monitoring -->
    <property name="OBJECT_NAME"
    value="RAPIDCARLAR:name=*"/>

    <!-- format the auto-discovered service names -->
    <property name="AUTOINVENTORY_NAME"
    value="%name% on %serverName%"/>

    <!-- instance attribute values; will be auto-discovered -->
    <config>
    <option name="name"
    description="Instance name, e.g. carlar"
    default="CARLARMetrics"/>
    </config>
    ….

    How can I write a plugin for the Java Wrapper Service which will pickup our metrics.

    Thanks
    Bob