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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't fix
    • Affects Version/s: 4.0.4
    • Fix Version/s: None
    • Component/s: Agent (G), Frontend (F)
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: