Ad Widget

Collapse

Inverse or Negated Regex in Filter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benh
    Junior Member
    • Feb 2016
    • 1

    #1

    Inverse or Negated Regex in Filter

    Is it possible to do an inverse regex in a discovery filter? I have several interfaces that get pulled in that I don't want, e.g,

    TenGigabitEthernet1/1/26--Uncontrolled
    TenGigabitEthernet1/1/26--Controlled
    unrouted VLAN 232

    Do you know of a way to just filter out Uncontrolled, Controlled, and VLAN? I have tried ^((?!VLAN).)*$ but that wipes everything out.
  • netopier
    Junior Member
    • Mar 2012
    • 16

    #2
    Hello, did u solve it? I have same problem and cant figure out...

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      AFIK know only way to solve is place @my_rev_regex in filter and define @my_rev_regex in Administration -> General -> Regular expressions by use "Result is FALSE" on every pattern which should be filtered off from the list.
      Using on place regexp has no this kind of ability because here you can use only POSIX Regexp.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      Working...