[SNMP4J] enable SNMP monitoring for Java app with existing MBeans

Frank Fock fock at agentpp.com
Sun Feb 17 11:21:00 CET 2013


Hi David,

Please have a look at the JvmManagementMibInst.java example mapping
of the SNMP4J-AgentJMX library. There you can see how MBeans are mapped
to a MIB specification.

If do not already have a MIB specification, then creating that would be 
the first
task. As creating the MIB spec. is most likely an interative task, I 
would recommend
using MIB Designer to do it. Then you can fast and easily change the 
structure
of the MIB to better fit your mapping needs.

You can then use AgenPro to generate the MIB stub-code (like it had been 
done
for the JvmManagement.java class)

With SNMP4J-AgentJMX the mapping can be done descriptive an almost all 
cases.
So coding is reduced to a minimum.

Best regards,
Frank

Am 17.02.2013 10:57, schrieb david pocivalnik:
> Hi,
>
> I'm new to snmp4j, snmp in general as well. I posted a question to
>
> http://stackoverflow.com/questions/14896501/enable-snmp-monitoring-for-java-app-with-existing-mbeans
>
> and I thought you might be able to answer the question as well. If you
> need more information please just let me know.
>
> I have MBeans in my Java application that are registered to the MBean
> server, and I can monitor my application. I know want to also offer the
> possibility to have an SNMP manager monitor the application as well. I
> found tools and ways to generate the Java code from some files that
> define the interface, but I want to do it the other way around. I
> couldn't find any example that would guide me through this procedure,
> even in the JMX example no mbeans are used.
>
> Thanks in advance and BR
> david
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list