I use LLD from Robin Roevens, which works perfectly fine, but my problem is with regex in zabbix!
I want LLD to find all interfaces with OIDs 1.3.6.1.2.1.2.2.1.2(ifDescr) and 1.3.6.1.2.1.31.1.1.1.18(ifAlias) and i want to filter all interfaces which port description(ifAlias) starts for example with A,B,C etc... And this part of regex works very well indeed! The problem is when i try to exclude all interfaces with "TEST" inside of name.
My regex looks like:
^[?=(A|B|C|F|H|G|I|P|U|V|W)](?!.*TEST)
This regex actually works when i test expression in zabbix! It returns TRUE for example "Axxx,Bxxx,GHxxx" and FALSE for "AxxxTESTxxx,TESTxxx, BTESTxxx" so from this perspective everything should work fine! But when i put that (?!.*TEST) part in regex, my LLD can't find any interface anymore and delete them all. When i return regex back to only ^[?=(A|B|C|F|H|G|I|P|U|V|W)] it works again, but with all "TEST" interfaces also.
Any ideas?
I want LLD to find all interfaces with OIDs 1.3.6.1.2.1.2.2.1.2(ifDescr) and 1.3.6.1.2.1.31.1.1.1.18(ifAlias) and i want to filter all interfaces which port description(ifAlias) starts for example with A,B,C etc... And this part of regex works very well indeed! The problem is when i try to exclude all interfaces with "TEST" inside of name.
My regex looks like:
^[?=(A|B|C|F|H|G|I|P|U|V|W)](?!.*TEST)
This regex actually works when i test expression in zabbix! It returns TRUE for example "Axxx,Bxxx,GHxxx" and FALSE for "AxxxTESTxxx,TESTxxx, BTESTxxx" so from this perspective everything should work fine! But when i put that (?!.*TEST) part in regex, my LLD can't find any interface anymore and delete them all. When i return regex back to only ^[?=(A|B|C|F|H|G|I|P|U|V|W)] it works again, but with all "TEST" interfaces also.
Any ideas?
Comment