-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
4.2.5
Steps to reproduce:
- Have a discovery rule
- Create a item prototype, like this:
- This item prototype have Preprocessing step like this :
- In fact, have also test with theses paths, without success
- $.[?(@.vmdisplayname == "HIDDENINFO")].state
- $.[?(@.vmdisplayname=="HIDDENINFO")].state
- $..[?(@.vmdisplayname == "HIDDENINFO")].state
- $..[?(@.vmdisplayname =~ "HIDDENINFO")].state
- In fact, have also test with theses paths, without success
- Test with item preprocessing tester and theses values below, ALL work correctly and return good result.
-
[ { "jobsessionuid": "urn:veeam:BackupJobSession:5d7bb890-4d97-44c1-a4cc-42dc6c24071f", "creationtimeutc": "2019-08-22T20:08:57Z", "endtimeutc": "2019-08-22T20:11:41Z", "state": "Completed", "result": "Success", "reason": "", "totalsize": 1073741824000, "vmuid": "urn:VMware:Vm:dcb66bd9-a188-47f1-8742-d2f5737e02ac.vm-99", "vmdisplayname": "HIDDENINFO", "name": "HIDDENINFO@2019-08-22 20:08:57", "uid": "urn:veeam:BackupTaskSession:30335919-136f-4743-a5d9-100013a11c4f", "href": "https://veeam:9398/api/backupTaskSessions/30335919-136f-4743-a5d9-100013a11c4f?format=Entity", "type": "BackupTaskSession" }, { "jobsessionuid": "urn:veeam:BackupJobSession:5d7bb890-4d97-44c1-a4cc-42dc6c24071f", "creationtimeutc": "2019-08-22T20:08:57Z", "endtimeutc": "2019-08-22T20:11:41Z", "state": "Completed", "result": "Success", "reason": "", "totalsize": 1073741824000, "vmuid": "urn:VMware:Vm:dcb66bd9-a188-47f1-8742-d2f5737e02ac.vm-99", "vmdisplayname": "HIDDENINFO2", "name": "HIDDENINFO@2019-08-22 20:08:57", "uid": "urn:veeam:BackupTaskSession:30335919-136f-4743-a5d9-100013a11c4f", "href": "https://veeam:9398/api/backupTaskSessions/30335919-136f-4743-a5d9-100013a11c4f?format=Entity", "type": "BackupTaskSession" } ]
Result:
In "production" mode, with the SAME JSON array value, that fail :
Expected:
Same result of Test preprocessing :
Best regards,
- duplicates
-
ZBX-16453 Can't discover JSON from top level
- Closed