1 Reply Latest reply on Dec 1, 2004 3:13 PM by Dimitris Andreadis

    SNMP adapter

    Michael K Newbie

      Hello all,

      I have Java application that receives SNMP traps. I'd like to port that application to JBoss. What's the right way to do it?

      Can I just copy my business logic in to MBean to store "parsed" traps to JMS?
      Where I can get SNMP adapter in case I need it?

      Thanks a lot.


        • 1. Re: SNMP adapter
          Dimitris Andreadis Master

          In the snmp-adaptor bundled with jboss, there is already a "trapd" service which is used primarily for testing, i.e. receiving and logging the traps produced by the snmp-adaptor.

          So you can:

          1) See how org.jboss.jmx.adaptor.snmp.trap.TrapdService is implemented and more or less do the same with your code.

          2) Take the existing TrapdService and modify it to call your handling code instread of logging them.

          Both snmp-adaptor and trapd are based on joeSNMP.

          I just thought of a 3rd option, if there is interest I could just enhance TrapdService to emit a JMX notification containing the received trap, then interested MBeans could just register to do something with it.