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

agent lld items return formatted json

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.3.0
    • Agent (G)
    • None

    Description

      for some reason zabbix agent returns formatted/indented json for discovery items. that doesn't seem to be needed, increases the amount transmitted and also the amount stored on proxies, for example.

      let's consider net.if.discovery that would return data for 3 entities lo/eth0/eth1

      returned json is :

      {
              "data":[
                      {
                              "{#IFNAME}":"lo"},
                      {
                              "{#IFNAME}":"eth0"},
                      {
                              "{#IFNAME}":"eth1"}]}
      

      unless i messed up counting, that's 71 meaningful bytes and 24 tabs & newlines, which is some 34% of data on top of the meaningful size.

      probably all whitespace should be discarded (or not added in the first place )

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              richlv richlv
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: