Ad Widget

Collapse

Issue with Customer LLD creating items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sean35
    Junior Member
    • Jan 2015
    • 19

    #1

    Issue with Customer LLD creating items

    Hi all,

    I'm having an issue with a template I've created for Zerto replication jobs. I've created a PowerShell script on the Zerto management server which outputs JSON, I've checked in in JSONLint as correct:

    Code:
    {
    	"data": [{
    		"{#VPGIdentifier}": "fc0b4e97-66b8-4776-ac71-ed8c01c45fa9",
    		"{#VPGName}": "DR - Sage X3"
    	}, {
    		"{#VPGIdentifier}": "97931b01-95c0-4f14-a8ea-7e2eb63a2cb4",
    		"{#VPGName}": "DR - Professional Services"
    	}, {
    		"{#VPGIdentifier}": "500aa3d4-6fb5-4e69-a034-087bbd842416",
    		"{#VPGName}": "DR - File Servers"
    	}, {
    		"{#VPGIdentifier}": "63d4e65c-aa0e-406f-9c89-22d4f53c1d80",
    		"{#VPGName}": "DR - Citrix"
    	}, {
    		"{#VPGIdentifier}": "3519069f-5122-48f8-aacf-b75a9fe62ba9",
    		"{#VPGName}": "DR - Linux VMs"
    	}, {
    		"{#VPGIdentifier}": "c73ba21e-32f1-4efe-92a8-f3d83d1793f4",
    		"{#VPGName}": "Failover Test"
    	}]
    }
    I've attached my template for your reference.

    The result of a discovery is as follows:
    Cannot create item: item with the same key "zerto[Status,{#VPGIdentifier}]" already exists.
    Cannot create item: item with the same key "zerto[Status,{#VPGIdentifier}]" already exists.
    Cannot create item: item with the same key "zerto[Status,{#VPGIdentifier}]" already exists.
    Cannot create item: item with the same key "zerto[Status,{#VPGIdentifier}]" already exists.
    Cannot create item: item with the same key "zerto[Status,{#VPGIdentifier}]" already exists.
    Cannot create item: item with the same key "zerto[Status,{#VPGIdentifier}]" already exists
    It's as if {#VPGIdentifier} isn't being expanded?

    Please help!

    Sean
    Attached Files
  • Sean35
    Junior Member
    • Jan 2015
    • 19

    #2
    Fixed!

    For the benefit of others, the issue here was the macro in the name of the LLD rule "{#VPGIdentifier}", only caps are supported (as it says in the documentation!).

    Once updated to "{#VPGIDENTIFIER}" and "{#VPGNAME}" all is working.

    I'll post the PowerShell script and template to the main site when I finish those off.

    Comment

    Working...