Ad Widget

Collapse

File System Discovery Filter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sxm1my
    Junior Member
    • Aug 2012
    • 12

    #1

    File System Discovery Filter

    All of a sudden my filter for excluding drives from being monitored is no longer working. No changes made that I am aware of. Is this syntax not correct?

    Click image for larger version

Name:	filter rule.jpg
Views:	263
Size:	14.5 KB
ID:	426493


    Thanks
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Your regex looks weird, so please test it with f.ex. https://regex101.com/ if it does what you want it to do.

    If you happen to want it to match with everything but strings starting with P or X (just guessing here), then "^[^PX]" would be my attempt, which means "start of string and then anything but P or X".

    Markku

    Comment

    • sxm1my
      Junior Member
      • Aug 2012
      • 12

      #3
      Thanks. I will give that a try.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        Wouldn't it be easier to do "not matches" and either "^P|^X" or "^[PX]"? or as Markku suggested, matches "^[^PX]
        Current one does a bit more than expected, I think. It excludes everything that starts with P or | or ^ or X in the beginning of a line.

        Comment

        Working...