Ad Widget

Collapse

Unknown file system path on Windows VMware Guests with 7.2.6.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jclipston
    Junior Member
    • May 2025
    • 1

    #16
    Originally posted by anjoze
    Thanks for your help.
    I've inserted the Javascript on this template parameters:


    Then I open the Host/Items and I can confirm that the Javascript is on the four Items.
    Like this:


    I click on Execute now but nothing happens, still have the "Unknown file system path" error and no data on that fields.
    I'm having this exact issue after updating to Zabbix 7.2.7 and adding the JavaScript preprocessing to the discovery items:
    Click image for larger version

Name:	image.png
Views:	137
Size:	62.8 KB
ID:	503583​The Items under the VMs are still showing Unknown file system path.:
    Click image for larger version

Name:	image.png
Views:	132
Size:	11.5 KB
ID:	503584​Any and all help on this subject would be appreciated

    Thank you

    Comment

    • anjoze
      Junior Member
      • May 2025
      • 8

      #17
      Originally posted by M D
      You need to edit the template.
      Thnks for the tip MD.
      I opened one host and verified that the template used was VMware Guest, so I edited the discovery rules of the VMware Guest template. (Attachment)
      In Mounted filesystem discovery I deleted the Preprocessing rule.
      5m later the filesystem info start working YEY!​

      Thank you very much
      PS: Where can I find the Bug you opened?​
      Attached Files

      Comment

      • makombost
        Junior Member
        • Sep 2025
        • 1

        #18
        Seems removing the preprocessing rule breaks the template for Linux VMs.

        Any details from the bug report?

        Comment

        • ayks
          Junior Member
          • Oct 2025
          • 1

          #19
          For me following worked:
          Go to Data Collection -> Templates
          Browse: VMware (in the Name field) -> Apply
          Find VMware Guest template and click on Discovery (of VMware Guest template)
          Click on Mounted filesystem discovery
          Click on Preprocessing (next to Discovery rule)
          Remove preprocesing sicrpt there! (save it somewhere first if you want to examine script later...)
          Go to item prototypes
          On every Item prototype click on it's name (e.g. Free disk space on [{#IFNAME}] and
          copy Javascript code from @crmendoza's post:

          Code:
          if (/^[A-Z]:$/.test(value)) {
          return value + "\\";
          } else {
          return value;
          }​
          after this repeat process of discovery for virtual machines when adding your vCenter (I'm using VMware template...)
          I hope this will help you too.

          Comment

          Working...