SNMP Trap parsing from MIB file.

Started by tamal_g, October 25, 2013, 01:24:17 PM

Previous topic - Next topic

tamal_g

Hi,

I have a SNMP based sensor device which send traps to SNMP server. I have created a node object named as 'AKSPSersorProbe' and have put its MIB file in the location \NetXMS\var\mibs. The MIB file is already compiled and I can open it from NetXMS MIB explorer. The device sends a SNMP trap with 6 varbinds when any critical vibration is detected. I have created an event with those 6 varbinds and i have created a rule to display this alarm. It was tested working fine.

My question is when I receive this trap it shows the OID in raw format (I want it to be translated from the MIB file automatically by the server). for example if it shows .1.3.6.1.4.1.3854.1.0.301 then actually I should get it like SPAGENT-MIB::spSwitch1Status (where 'SPAGENT-MIB' is the module name and 'spSwitch1Status' is the enterprise specific trap name).

Another thing which I noticed is that the varbind integer value is getting parsed from the mib file. In this case the 1st variable is .1.3.6.1.4.1.3854.1.7.1.0 == '4' whose value is '4'. Instead of showing this integer value I should get as its textual convention which is already defined in the MIB file as 'HighCritical'.
Please help me to configure this. I have attached the SNMP trap log and the MIB file for your reference.

Thanks and best Regards,