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:
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:
This key is marked as invalid:
Proxy is version 4.0.2 on Ubuntu 18.04
Server is version 4.0.2 on Ubuntu 18.04
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)"]
This item key is operational:
Code:
snmptrap["(\Q.1.3.6.1.4.1.14179.2.6.3.8\E)(.|[[:space:]])*(\QAmp_AP05\E)"]
Code:
snmptrap["(\Q.1.3.6.1.4.1.14179.2.6.3.8\E)(.|[[:space:]])*(\QAmp_AP06\E)"]
Server is version 4.0.2 on Ubuntu 18.04
Comment