Ad Widget

Collapse

LLD Filter Macros and Regexp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tiagosoares
    Member
    Zabbix Certified Specialist
    • Jul 2010
    • 35

    #1

    LLD Filter Macros and Regexp

    Guys,

    I'm facing troubles when I create a LLD rule with a filter like this:

    Macro: {#FSNAME}
    Regexp: "^/|^/usr|^/var|^/tmp|^/home|^/boot"

    This filter discovers my "/var/lib/", but I have others FS like "/" and "/boot" that they not got discovered...

    What I need is that the discovery rule only discovers this FS's and ignore the rest.

    /
    /usr
    /var
    /tmp
    /home
    /boot

    Tks!
  • bcrowder
    Junior Member
    • Sep 2011
    • 10

    #2
    Try this:

    Regexp: "^/$|^/usr$|^/var$|^/tmp$|^/home$|^/boot$"

    Comment

    Working...