Ad Widget

Collapse

SNMP Trap: Invalid REGEXP on some auto-generated items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herlincl
    Junior Member
    • Jun 2018
    • 4

    #1

    SNMP Trap: Invalid REGEXP on some auto-generated items

    While using LLD to generate SNMP trap items, I'm having some of the auto-generated items marked as not supported due to invalid regular expressions, despite being generated using the same template.

    For the LLD item prototype, I've defined the key:
    Code:
    snmptrap["(\Q.1.3.6.1.4.1.9.9.513.0.4\E)(.|[[:space:]])*(\Q{#APNAME}\E)"]
    All items are generating as expected, and some are marked as supported. Those items are correctly identifying traps passed to the trap log file.

    This item key is operational:
    Code:
    snmptrap["(\Q.1.3.6.1.4.1.14179.2.6.3.8\E)(.|[[:space:]])*(\QAmp_AP05\E)"]
    This key is marked as invalid:
    Code:
    snmptrap["(\Q.1.3.6.1.4.1.14179.2.6.3.8\E)(.|[[:space:]])*(\QAmp_AP06\E)"]
    Proxy is version 4.0.2 on Ubuntu 18.04
    Server is version 4.0.2 on Ubuntu 18.04
    Attached Files
  • herlincl
    Junior Member
    • Jun 2018
    • 4

    #2
    Grabbed the wrong key entry from LLD, the correct one is
    Code:
     
     snmptrap["(\Q.1.3.6.1.4.1.14179.2.6.3.8\E)(.|[[:space:]])*(\Q{#APNAME}\E)"]

    Comment

    • herlincl
      Junior Member
      • Jun 2018
      • 4

      #3
      Should someone else encounter this, it appears to be a graphical bug, possibly related to ZBX-15318.

      The items are marked as invalid and not supported after creation. However, when a matching trap is received, it was recognized and the item's status was automatically updated to "Enabled."

      Comment

      Working...