Ad Widget

Collapse

SNMP Trap value to variable/macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • basti23
    Junior Member
    • May 2017
    • 3

    #1

    SNMP Trap value to variable/macro

    Hello

    I have a question regarding SNMP traps, there are some values which I would like to add to the trigger name. Right now, incoming traps look like following:

    15:00:00 2019/01/01 FORTINET-CORE-MIB::fortinet.101.2.0.801 Normal "Status Events" FIREWALL-FG01.test.lab - FG240D123456789 FIREWALL-FG01.test.lab 1 FP321C123456789 AccessPoint02

    I want to use the value AccessPoint02 in the trigger name, best would be to save it in a variable/macro like $ACCESSPOINT, so that I can configure trippers name like Access Point {ACCESSPOINT}up on {HOST.NAME}.
    I read a lot about regex within macro functions and Item Preprocessing but not sure if this is the way to do it, I am a little bit stuck. Can anyone give me a hint
    Thanks
Working...