-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
None
For now we are using too complicated trigger names with macro functions to display data from SNMP traps, like this:
Unknown SNMP trap is received ({{ITEM.VALUE}.regsub("DISMAN-EVENT-MIB::sysUpTimeInstance\s+Timeticks:\s+((\d+))", "\1")}) {{ITEM.VALUE}.regsub("SNMPv2-MIB::snmpTrapOID\.0\s+\s+(.*)", "\1")}
There is only two variables is getting from SNMP trap, but string is not readable and too long.
E.g. trigger name field is only 255 chars.
I'm think would be great to implement using tags as macro (or dynamic macro) in trigger name and description, then our trigger name may like this:
Unknown SNMP trap is received ({TAGS.Timeticks}) {TAGS.OID}