0 Replies Latest reply on Feb 6, 2012 4:39 AM by Satish Kumar

    SNMP traps not working for jboss 6.0.0.Final(with ESB)

    Satish Kumar Newbie

      Hi,

       

      I have a message processing ESB application deployed in jboss 6.0.0.Final and want to send SNMP traps for any errors during message processing.

      I have configured SNMP appender and logger in jboss-logging.xml of jboss, present in deploy directory as follows:

       

           <log4j-appender name="MessageProcessingSNMPAppender" class="org.apache.log4j.ext.SNMPTrapAppender">

            <error-manager>

               <only-once/>

            </error-manager>

       

            <level name="DEBUG"/>

       

            <properties>

               <property name="implementationClassName">org.apache.log4j.ext.JoeSNMPTrapSender</property>

               <property name="managementHost">10.11.220.192</property>

               <property name="managementHostTrapListenPort">162</property>

               <property name="enterpriseOID">1.3.6.1.4.1.24.0</property>

               <property name="localIPAddress">127.0.0.1</property>

               <property name="localTrapSendPort">161</property>

               <property name="genericTrapType">6</property>

               <property name="specificTrapType">12345678</property>

               <property name="communityString">public</property>

               <property name="forwardStackTraceWithTrap">true</property>

               <property name="applicationTrapOID">1.3.6.1.4.1.24.12.10.22.64</property>

            </properties>

            <formatter>

               <pattern-formatter pattern="%-5p %-5c %x - %m %n"/>

            </formatter>

         </log4j-appender>

       

           <logger category="MessageProcessingSNMPLogger"  use-parent-handlers="false">

               <level name="DEBUG" />

               <handlers>

           <handler-ref  name="MessageProcessingSNMPAppender" /></handlers>

          </logger>

       

      and below is the code for error logging with snmp logger configured as above:

       

      private static final Logger messageProcessingSNMPLog = Logger.getLogger("MessageProcessingSNMPLogger");

      messageProcessingSNMPLog.error(logErrorMessage, messageProcessingException);

       

      I am using wireshark to examine the SNMP traps sent from my application. But no SNMP traps were observed.

       

      Want to know what am i missing from configuration side or libraries for SNMP to work.

      Thanks in advance.

       

      Satish.