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

agent lld items return formatted json

XMLWordPrintable

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

      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 )

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

              Created:
              Updated:
              Resolved: