Ad Widget

Collapse

Zabbix VMWare Datastore space monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin Nelson
    Junior Member
    • Feb 2024
    • 3

    #1

    Zabbix VMWare Datastore space monitoring

    I have the VMWare template monitoring my datastores with the default threshold of 10%. I have a couple of datastores within this set up to have a different threshold. I have tried cloning an existing 'Trigger Prototype' but I get an error each time. Is there a method to follow to do this or a better way to have a separate threshold for a datastore?
    Thank you
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    What is the template you are using? I don't directly find a VMware template that has trigger prototype for datastore space.

    But in general, usually disk space trigger prototypes use user macros with context in the expression: https://www.zabbix.com/documentation...macros_context

    Markku

    Comment

    • paulb007
      Junior Member
      • May 2025
      • 4

      #3
      Hi

      Just following up on this...

      I see on the Windows and Linux Templates the following Triggers
      WINDOWS - Trigger Expression
      min(/Windows by Zabbix agent updated dashboards/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSLABEL}({#FSNAME} )"}

      Linux - Trigger Expression
      min(/Linux by Zabbix agent updated dashboards/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}

      However, the VMWARE Template (https://git.zabbix.com/projects/ZBX/...at=release/7.4)
      Trigger Expression
      last(/VMware/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.WARN}

      Based on this it seems that you cannot create different thresholds for different datastores... What I am wondering is, should the trigger have the {#DATASTORE.UUID} after the {$VMWARE.DATASTORE.SPACE.WARN}

      Something like this
      last(/VMware/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.WARN:"{#DATASTORE.UUID} "}

      Thanks​

      Comment

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

        #4
        Originally posted by paulb007
        Something like this
        last(/VMware/vmware.datastore.size[{$VMWARE.URL},{#DATASTORE.UUID},pfree])<{$VMWARE.DATASTORE.SPACE.WARN:"{#DATASTORE.UUID} "}
        That would make it possible to customize the trigger threshold for each datastore, yes, by defining separate context macros for them.

        (Edit: There was an extra space inside the quotes, but it could have been a typical error in this forum software)

        Markku

        Comment

        • paulb007
          Junior Member
          • May 2025
          • 4

          #5
          Is this something that should be added to official template? If so, is there a process to get the template updated? I think the Template VMware Hypervisor, and VMware FQDN would also need to be updated.

          Comment

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

            #6
            Feature request ticket for improving the official templates can be opened at https://support.zabbix.com/.

            Markku

            Comment

            Working...