Ad Widget

Collapse

Monitoring VMware snapshots

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muteone
    Junior Member
    • Nov 2025
    • 5

    #1

    Monitoring VMware snapshots

    Hi everyone, I have a custom PowerShell script someone wrote at my work to check for snapshots on VMware vms but I'd like to have this in zabbix, has anyone done this?

    Thanks,
  • mariusl
    Junior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2024
    • 25

    #2
    Why don't you use the built in VMWare functionality?

    Comment

    • Muteone
      Junior Member
      • Nov 2025
      • 5

      #3
      Originally posted by mariusl
      Why don't you use the built in VMWare functionality?
      I am, there's no snapshot items in the templates.

      Comment

      • Jason
        Senior Member
        • Nov 2007
        • 430

        #4
        Originally posted by Muteone

        I am, there's no snapshot items in the templates.
        How about https://www.zabbix.com/documentation...re.vm.snapshot ?

        Comment

        • Muteone
          Junior Member
          • Nov 2025
          • 5

          #5
          I've made a template, struggling to get alerts to ignore Veeam snapshots and only show old snapshots.

          Comment


          • Jason
            Jason commented
            Editing a comment
            Can you parse createtime to a datetime field and get age of that as difference from now?
        • Muteone
          Junior Member
          • Nov 2025
          • 5

          #6
          Got something working, I wanted multiple items in the trigger expression so I could show them in operational data.
          The main issue I was having was trying to filter out Veeam snapshots, this is done on the master item now as an exclusion array.
          The second issue was the time needing to be converted to epoch
          There was a final issue of alerts not resolving as the values became empty when the snapshot was removed so I had to add values on JSON lookup failure.

          Still some fine tuning to do.
          I just linked this to the existing vmware guest template

          EDIT: Code deleted to avoid perma ban.
          Last edited by Muteone; 14-11-2025, 01:13. Reason: Don't want to be banned for sharing my work.

          Comment

          • Jason
            Senior Member
            • Nov 2007
            • 430

            #7
            If you use a discovery based on the JSON string from snapshot.get (do the discovery and items based on dependent items) then it should work and auto clear items when then the snapshots go. Then it should be fairly easy to filter out the snapshot names to remove the veeam ones.

            Comment

            • k-hole
              Junior Member
              • Aug 2022
              • 10

              #8

              Comment

              Working...