Ad Widget

Collapse

Help with vmware.vm.snapshot.get trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • k-hole
    Junior Member
    • Aug 2022
    • 10

    #1

    Help with vmware.vm.snapshot.get trigger

    Hello Chaps,

    I'm new to zabbix and json and need some help with setting up a trigger on the new vmware.vm.snapshot.get[{$VMWARE.URL},{$VMWARE.VM.UUID}]) item.
    Examples: https://www.zabbix.com/documentation...ng/vmware_json
    Essentially what I'm looking for is to either:

    1. Check the "latestdate" key value returned is not "null" (no snapshots)
    Example output: "latestdate":null
    2. If "latestdate" has a value other than null (in case of snapshots) extract the date portion with regex or another function from the string and compare against current date()
    Example output: "latestdate": "2022-04-01T06:37:53.535687Z"

    Any pointers on how to reference the latestdate value from vmware.vm.snapshot.get[ ] output would be a great start.

    Thank you!
  • NicolasB
    Junior Member
    • Apr 2019
    • 10

    #2
    Same here, i don't understand how to make a trigger with this lastest date

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #3
      Take a look at this topic: https://www.zabbix.com/forum/zabbix-...-in-zabbix-6-2

      Comment

      Working...