snmp trap log - can we have the formatted view?

Started by paul, May 26, 2019, 06:55:15 AM

Previous topic - Next topic

paul

When we define a snmp trap for processing, we import the definition from the mib and make it look nice.

when I then look in the SNMP trap log - all I can see is the raw data. I don't know about anyone else, but I can only remember so many OID's - and that is already too many!!

Can we please include an extra column after the trap processor has parsed the trap with the view based on what the trap processor has formatted it as.

Or, for every trap where a mib is loaded, simple present the trap as per the format that the MIB has it - as per the Vendors intended view.

Either way, we get a more useful view within the trap log window.





paul

Actually - this is probably more like a bug than just a feature request.

In Alarm Details view, thee is a section for DCI Data however for a SNMP trap, there is no DCI data - there is trap data.

For a trap, the description of the trap should be being displayed as more often than not, many traps include in their description what action is suggested. The description is stored in netxms at the trap definition level - but not transferred to Alarm Detail.

so two things needed where Alarm type = trap
1) Display the description information from the trap definition.
2) Use the description field of the Event Configuration as the formatted display and display it - one line at a time - in the Alarm Detail screen.


paul

#2
OK - the formatted view - one line at a time - already exists. All I needed was the \n to trigger a new line.

As for text version of the OID - it may be the comments field for varbind as per the wiki - however I suspect it is the comment for the varbind only and the trap description is not kept anywhere.

https://wiki.netxms.org/wiki/NXSL:SNMP_VarBind

As per the wiki, the comment may have that information when polling, but when passing trap information, it is not passed.

Only the varbinds are passed - as per the SNMP Trap Mapping - each varbind is mapped to a parameter and it is the parameters only that are passed.

given that you can only have 255 paramaters, why not pass the OID numerics and text as variables relative to th parameter assigned.

For %1 also pass %oidn1 as the OID numeric and the OID text as %oidt1

As for the Description that is in the mib for the trap - pass that as %trap-description as well as including the option in the SNMP Trap Mapping to manually add it - and if loading from a mib - automatically pull it from the mib.