VMware Cloud Community
brettg98
Contributor
Contributor

Simple SNMP plugin

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,
Reply
0 Kudos
4 Replies
excowboy
Virtuoso
Virtuoso

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
Reply
0 Kudos
brettg98
Contributor
Contributor

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
Reply
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi Brett,

you're missing the "-jar" switch !

./jre/bin/java -jar ./pdk/lib/hq-product.jar -D plugins.include=bes -m lifecycle
Reply
0 Kudos
excowboy
Virtuoso
Virtuoso

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
Reply
0 Kudos