snmp configuration

Started by lindeamon, October 16, 2011, 07:13:12 PM

Previous topic - Next topic

lindeamon

hi,

i need a clarification on this subject:
1. what are parameters in "snmp trap mapping" ? are those varbinds ? if so,i have added 1 param. and i have told him to take it by position of 1 but the param number is 2, does that mean that it will take varbind 1 from the trap and tag it is netxms parameter num.1 ?
2. following th example i have given in the above section i have created an event with %1 in the message field and i have created a corresponding event in the event processing and i got an alarm without the message and only when i changed %1 to %2 as corresponded to the 1st section i got the alarm, should there be a correlation between the parameter number in the snmp trap template and the %# in the event template ?
3. if all the above is true, what does the %1 from the snmp trap contains and why can not i start the parameters in the varbinds from 1 to match the parameter's number to the varbind number ?

Thanks,
Lindeamon

Victor Kirhenshtein

Hi!

There are two entities: event parameters and snmp trap varbinds. Each received trap converted to NetXMS event. This event always gets SNMP trap object ID (OID) as first parameter, so %1 in event template will always be expanded to trap OID. You can map varbinds to event parameters. First mapping will be for parameter number 2, because number 1 already taken. You can identify varbinds within trap in two ways - by position (starting from 1) or by varbind OID. You are not needed to map all varbinds or map them to parameters in same order - you can map varbind #5 to parameter #2 and varbind #1 to parameter #3, for example.

Hope this makes things more clear!

Best regards,
Victor

lindeamon

hi victor,

10x a lot.now i understand.

Best Regards,
Lindeamon