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

sliced response from zabbix_get

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 4.0.5
    • Server (S)
    • None

      ]}Steps to reproduce:

      1. Produce long-lines JSON for read in UserParameter fe.
      {"data": [
      {"{#TC}": "educationplatform","{#INSTANCE}": "educationplatformuploaddatarequest_durationms"},
      {"{#TC}": "email","{#INSTANCE}": "create_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "update_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "create_durationms"},
      {"{#TC}": "getscore.offline","{#INSTANCE}": "updateloan_durationms"},
      {"{#TC}": "scorecardprovider","{#INSTANCE}": "getresponse_durationms"},
      {"{#TC}": "scorecardprovider","{#INSTANCE}": "getfactorexecutioncontext_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "upsert_durationms"},
      {"{#TC}": "scorecardprovider","{#INSTANCE}": "getbikwsalltransferpureentities_durationms"},
      {"{#TC}": "sms.bluemedia","{#INSTANCE}": "sendsmsrequest_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "login_durationms"},
      {"{#TC}": "bankgateway.p24","{#INSTANCE}": "sendtransfer_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "bulkmessageluploaderexecutedontimeout"},
      {"{#TC}": "getscore.offline","{#INSTANCE}": "updateloanapplication_durationms"}
      ]}
      1. From zabbix_agentd it looks good. Same as above, but from zabbix_get:
      {"data": [
      {"{#TC}": "educationplatform","{#INSTANCE}": "educationplatformuploaddatareques
      t_durationms"},
      {"{#TC}": "email","{#INSTANCE}": "create_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "update_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "create_durationms"},
      {"{#TC}": "getscore.offline","{#INSTANCE}": "updateloan_durationms"},
      {"{#TC}": "scorecardprovider","{#INSTANCE}": "getresponse_durationms"},
      {"{#TC}": "scorecardprovider","{#INSTANCE}": "getfactorexecutioncontext_duratio
      nms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "upsert_durationms"},
      {"{#TC}": "scorecardprovider","{#INSTANCE}": "getbikwsalltransferpureentities_d
      urationms"},
      {"{#TC}": "sms.bluemedia","{#INSTANCE}": "sendsmsrequest_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "login_durationms"},
      {"{#TC}": "bankgateway.p24","{#INSTANCE}": "sendtransfer_durationms"},
      {"{#TC}": "salesforce","{#INSTANCE}": "bulkmessageluploaderexecutedontimeout"},
      {"{#TC}": "getscore.offline","{#INSTANCE}": "updateloanapplication_durationms"}
      ]}
      
      
      1. zabbix_get added additional line brakes which brakes json, 

      Result:
      It causes: "Value should be a JSON object." when using UserParameter in discovery rules
      Expected:
      zabbix_get should not brake lines on its own.

        1. 2019-03-20 (1).png
          2019-03-20 (1).png
          9 kB
        2. 2019-03-20 (2).png
          2019-03-20 (2).png
          138 kB
        3. image-2019-03-20-15-12-11-767.png
          image-2019-03-20-15-12-11-767.png
          88 kB
        4. image-2019-03-20-15-35-41-323.png
          image-2019-03-20-15-35-41-323.png
          93 kB
        5. zabbix_1.png
          zabbix_1.png
          39 kB
        6. zabbix_2.png
          zabbix_2.png
          257 kB

            elina.kuzyutkina Elina Kuzyutkina (Inactive)
            piotr-jarosz Piotr Jarosz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: