[SNMP4J] Mapping JMX notification To SNMP trap

wafae alami alami.ouafae at gmail.com
Fri Mar 27 17:42:44 CET 2009


hi ,

I want to make a mapping between between JMX notifications received from an
MbeanServer to SNMP trap to send to snmp manager .
In my class I have added a listener to those notifications , but when
received I have the following message :

 27 mars 2009 16:14:31 org.snmp4j.log.JavaLogAdapter log
INFO: No PDU handler found for request
CommandResponderEvent[transportMapping=org.snmp4j.transport.DefaultUdpTransportMapping at 139422bpeerAddress
=155.132.215.56/38530, processed=true, pdu=[TRAP[requestID=172,
errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.1.3.0 = 2:08:50.86;
1.3.6.1.6.3.1.1.4.1.0 = 1.3.6.1.4.1.637.71.6.1.2; 1.3.6.1.4.1.637.71.6.6.1.0
= 411 days, 19:13:42.12; 1.3.6.1.4.1.637.71.6.6.2.0 = 16;
1.3.6.1.4.1.637.71.6.6.3.0 = 0; 1.3.6.1.4.1.637.71.6.6.4.0 = Restarting
failed autoStart instance; 1.3.6.1.4.1.637.71.6.6.5.0 = mcad7p38;
1.3.6.1.4.1.637.71.6.6.6.0 = MySqlCluster__mysql_mcad7p38;
1.3.6.1.4.1.637.71.6.6.7.0 = MySql; 1.3.6.1.4.1.637.71.6.6.8.0 = 6;
1.3.6.1.4.1.2162.10.3.1.3.3 = 2009/03/27 16:14:25: Code 16 (Notif) Comp =
'MySql', Inst = 'MySqlCluster__mysql_mcad7p38', on host mcad7p38: Restarting
failed autoStart instance]]], securityName=public, securityModel=2,
securityLevel=1]


1-  I have created the method :


       public void alarmsEventsNotif(NotificationOriginator
notificationOriginator,
                                           OctetString context,
                                           VariableBinding[] vbs) {

         notificationOriginator.notify(context, oidAlarmEventsNotif, vbs);
       }

  and add a  listener to my notification , but I don't know how and where
call alarmsEventsNotif method to notify the  notificationOriginator ?

2- my notification source is associated to a scalar mbean while the

    notificationSupport.add(oid , new MbeanNotificationInfo(
MBeanNotificationObjectInfo[] ,JMXNotificationIndexSupport );

require an JMXNotificationIndexSupport  instance ??  what should I use for
this case ?


Thanks in advance .

Ouafae .



More information about the SNMP4J mailing list