vCenter

 View Only
  • 1.  Simple SNMP plugin

    Posted Nov 07, 2007 09:09 PM
    Sorry about the double post, but I started to figure that this may be the better area for this question...

    I am having problems deploying my first custom SNMP plugin and I hope that something can point me in the right direction. I have created the .xml file and saved it to the hq-plugin directory under my installation path. But I can't seem to find the new monitor in HQ. Where exactly should I be able to see it? Also is there a method for turning on debugging to see if HQ is even loading the plugin?

    Thanks,


  • 2.  RE: Simple SNMP plugin

    Posted Nov 09, 2007 07:31 AM
    Hi,

    could you please post your plugin ? Maybe we see whats wrong.
    If it's installed correctly you should see it when you click on Tools Menu -> New Platform -> Platform Type

    You can check the syntax and lifecycle of your plugin standalone:
    Let's say your plugin name is sunx64 you can run:

    mpluhar@biollante:~/hyperic/hyperic-hq-agent-3.1.1$ ./jre/bin/java -jar ./pdk/lib/hq-product.jar -D plugins.include=sunx64 -m lifecycle

    This command looks for plugins in hq-plugins dir. If you see no output everything its okay

    Cheers,
    Mirko


  • 3.  RE: Simple SNMP plugin

    Posted Nov 09, 2007 07:15 PM
    Thx for the update. When I run the command you mentioned I do get some output...

    Exception in thread "main" java.lang.NoClassDefFoundError: //pdk/lib/hq-product/jar

    Here's the command that I ran,

    ./jre/bin/java ./pdk/lib/hq-product.jar -D plugins.include=bes -m lifecycle

    bes.xml exists in /opt/hyperic-3.1.1-EE/hq-plugins.

    Brett

    I have attached the plugin


  • 4.  RE: Simple SNMP plugin

    Posted Nov 10, 2007 11:06 AM
    Hi Brett,

    you're missing the "-jar" switch !

    ./jre/bin/java -jar ./pdk/lib/hq-product.jar -D plugins.include=bes -m lifecycle


  • 5.  RE: Simple SNMP plugin

    Posted Nov 10, 2007 02:20 PM
    Hi Brett,

    please have a look at the documentation how to build up a SNMP plugin from scratch:
    http://support.hyperic.com/confluence/display/DOCSHQ30/SNMP+Plugin

    You have to code some elementary functions in your plugin to make it work.

    I attached a plugin for your Blackberry Enterprise Server which is built based upon the SNMP MIB file.
    It would be nice if you install, test it and report about it.

    Cheers,
    Mirko