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!
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!
Comment