-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
5.0.1
-
None
-
os:rhel7.6
how to split json key into lld macro from discovery rule.
json data:
[{ "status":"UP", "details":{ "diskSpace":{ "status":"UP", "details":{ "total":199616368640, "free":144448040960, "threshold":10485760 } }, "db":{ "status":"UP", "details":{ "database":"Informix Dynamic Server", "hello":102 } }, "refreshScope":{ "status":"UP" }, "redis":{ "status":"UP", "details":{ "version":"4.0.11" } } } }]
I want create lld macro {#SER_NAME} as each child key from key details, like *
{#SER_NAME}=*diskSpace,*{#SER_NAME}=*db,*
{#SER_NAME}
=*refreshScope,*{#SER_NAME}
=*redis
but I get a error says :Cannot create item: item with the same key jser_status[{#SER_NAME}
|#SER_NAME}]" already exists.
how to solve it. thanks very much!
Steps to reproduce:
- import host with file javatest.xml in attachment
2. put shell sbget.sh in external dir
Result: