Ad Widget

Collapse

Discovery Rule Filter match string but exclude

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harvey
    Junior Member
    • Sep 2011
    • 13

    #1

    Discovery Rule Filter match string but exclude

    I'm trying to discover network interfaces on a router. I'm trying to find any interfaces that contain 'wan' but exclude 'bridge' or VLAN in the name regardless of case and order. I have been able to build the regex as seen here: https://regex101.com/r/CR5o6y/1/ but when I try and put this in zabbix it doesn't match anything. In the regular expression field I have used the following:-

    /^(?=.*wan)(?!.*(vlan|bridge)).*$/gmi

    Any ideas?

    Thanks
Working...