Yes, it is quite simple to do.
Inside the snmp-agent.sar you will see a file called attributes.xml . This file associates SNMP identifiers with JMX attributes.
So, for each element in your MIB, you need to expose this information using the JMX MBean, and then add the OID-> JMX association to attributes.xml .
The agent itself does not know and does not care about your MIB, so you need to be careful to correctly specify the OID in attributes.xml .
source share