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

Graph prototype process create only the lastest value sent by the Json object

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.2.6
    • Server (S)
    • None
    • Centos 7.2
      apache 2.4

      When returning a json with several key / values, the graph prototype process create only the lastest pair :

      Example :

      {
              "data":[
      
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"ismp_br_v5"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"ismp_sd"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"ismp2"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"ismp_sd_arch"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"ismp_cas"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"ismp_br"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"monitoring_management"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM101",
                      "{#DB}":"mentoring"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM102",
                      "{#DB}":"acacia_webapp"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM102",
                      "{#DB}":"horus_report"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM102",
                      "{#DB}":"ismp_am_gu"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM102",
                      "{#DB}":"ismp_as_gu"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"resource_management"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"infocenter"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"ismp_mm_light"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"ismp_sd_light"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"ismp_am_light"
              }
              ,
              {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"ismp_cm_light"
              }
      
              ]
      }
      

      On this example, only 3 graph are created :

      - "{#INSTANCE}":"MYDITM101",
         * "{#DB}":"mentoring"
      -         {
                      "{#INSTANCE}":"MYDITM102",
               }
      -        {
                      "{#INSTANCE}":"MYDITM103",
                      "{#DB}":"ismp_cm_light"
              }
      

      On the other time, all items are correctly created and return values see attach docs

        1. Graph.PNG
          Graph.PNG
          12 kB
        2. Graph2.PNG
          Graph2.PNG
          17 kB
        3. items.PNG
          items.PNG
          11 kB
        4. Capture.PNG
          Capture.PNG
          58 kB

            Unassigned Unassigned
            landry41 CHRETIEN Landry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: