Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18088

Cannot create item: item with the same key "jser_status[{#SER_NAME}]" already exists.

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.1
    • Frontend (F)
    • 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:

      1. import host with file javatest.xml in attachment

             2. put shell sbget.sh in external dir 

      Result:

       

       

       

            ematuls Eduards Matuls (Inactive)
            rochine123 romeo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: