Hi@all,
i try to create new hosts via LLD. to do this, i trigger a LLD rule an a host which returns this json:
{ "data":[
{
"NewSQLHost": "test1",
"{#sqlClusterRole}": "SQL Server (test1)",
"{#sqlResName}": "test1",
"{#sqlResNameDNS}": "test1",
"{#sqlResNameIP}": "10.10.10.10"
},
{
"NewSQLHost": "test2",
"{#sqlClusterRole}": "SQL Server (test2)",
"{#sqlResName}": "sqltest2",
"{#sqlResNameDNS}": "sqltest2",
"{#sqlResNameIP}": "1.2.3.4"
}
]}
Next, my goal is, that based on this, 2 new hosts are created. In the LLD is set as LLD Macro:
Macro Json Path
{#SQLNAME} --> $.[].NewSQLHost
The Host prototype use for the Hostname: {#SQLNAME}
But, i got the error von LLD:
Cannot create host "{#SQLNAME}": name contains invalid character '{'.
What do i wrong???
Thank for hints!
bjoern
Think about it ,,
Comment