Ad Widget

Collapse

Question about vfs.file.exists on Windows

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mkmb
    Junior Member
    • Jul 2020
    • 8

    #1

    Question about vfs.file.exists on Windows

    Hello all,

    I am currently working on a way to monitor volumes going missing on Windows servers.
    We had an issue with a Windows server VM twice that disks went offline and Zabbix did not send out an alert in any way.
    To avoid not getting any alert on such an event, I wanted to create something in Zabbix.

    Now I wanted to get this done with e.g. vfs.file.exists[E:\,dir] and a trigger on that item.
    Problem is, that this check does return 1 when the drive exists, but becomes unsupported when the drive does not exist - which means the trigger does not work.

    Is there anything I am doing wrong with this check?
    Or is there another way to have Zabbix send out an alert, when a disk or volume suddenly disappears?

    I am glad for any hints on this.
  • Answer selected by mkmb at 05-08-2025, 14:24.
    Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    Try nodata() trigger for the item.

    Markku

    Comment

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

      #2
      Try nodata() trigger for the item.

      Markku

      Comment

      • mkmb
        Junior Member
        • Jul 2020
        • 8

        #3
        Hi Markku,

        thank you for that hint!
        The trigger now fires, when the drive is missing.

        Comment

        Working...