Hi Alexandre,
If you're speaking of exposing data through SNMP, as opposed to retrieving data from an SNMP sub agent, then you will have to start an SNMP adaptor and implement an SNMP MIB.
Depending on your model (what you want to expose) this could rate from moderately tricky to unpracticable (some things - such as a java stack-trace, just can't be exposed completely through SNMP without an overwhelming model complexity).
One possibility to implement an SNMP MIB would be to use OpenDMK - (
http://opendmk.dev.java.net/). You could use OpenDMK mibgen to generate a MIB skeleton from an SNMP MIB file description, and then fill in the skeleton to retrieve the actual data from the MBeans that expose it.
However, before you launch into such an adventure - you should start answering these few question:
1) Is there a (standard or proprietary) SNMP MIB which already defines how the data you want to expose should be exposed through SNMP? If yes you're lucky - you 'just' have to implement this MIB.
2) If there isn't such a MIB, you will need to define your own. This requires some SNMP expertise. You will need to obtain an OID for that MIB, and you should ask yourself whether you want to standardize it, and if yes through which body, and how this MIB will evolve in the future.
You might find some insights of what's in store for you by reading this post:
http://blogs.sun.com/jmxetc/entry/jmx_vs_snmp
You will also find some other articles regarding SNMP here:
http://blogs.sun.com/jmxetc/tags/snmp
Hope this helps,
-- daniel
JMX, SNMP, Java, etc...
http://blogs.sun.com/jmxetc
[Message sent by forum member 'dfuchs' (dfuchs)]
http://forums.java.net/jive/thread.jspa?messageID=278054