Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15756

regex inclusion match in vfs.dir.count not working

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 4.0.4
    • Agent (G), Frontend (F)
    • None

      I have a directory structure like:

      d:\directory\4567\file.name
      d:\directory\1234\file.name
      d:\directory\1\file.name

      I want the regex to count the occurrences of "file.name" within sub-directories who's name length is > 1. So in the above example the count should be 2.

       

      Here is what i tested with. 

       

      This did not work/produce any count:

      vfs.dir.count[d:\directory\, "\d{2,}\\file\.name"] 

       

      This did not work either:

       

      vfs.dir.count[d:\directory\, "\d{2,}"]
      

       

      This worked but counted all contents of the directories.

       

      vfs.dir.count[d:\directory\, "[0-9]{2,}"]
      

       

      This did not work:

       

      vfs.dir.count[d:\directory\, "[0-9]{2,}\\file\.name"]
      

       

      This worked but gives me one more count than i want.

      vfs.dir.count[d:\directory\, "file\.name"]

       

      So can someone explain why the below examples don't work ?

      "\d{2,}\\file\.name"
      "[0-9]{2,}\\file\.name"

       

      Thank you.

            zabbix.support Zabbix Support Team
            scott.mcgillivray@gmail.com Scott McGillivray
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: