Can I extend the jboss snmp adapter (snmp agent) to support my specific MIB?

I have my own MIB files, and I know that in many cases I have to write a snmp agent to support my own MIB.

But this time, I think that if I can connect the jboss snmp adapter (JBossSNMPAdapter) to support my MIB, it will be much easier. So, through the jboss snmp adapter, I can request its oid. I know that the JBossSNMPAdapter already supports MIB-II.

I wonder if the jboss snmp adapter can support a custom MIB so the user can request an oid? And how to set up? Is there any material on this (jboss snmp adapter)?

thanks a lot

+4
source share
1 answer

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 .

+2
source

All Articles