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

Zabbix agent 2 "agent data" request is different from Zabbix agent, not documented

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 6.4 (plan)
    • 6.2.0
    • None
    • Linux
    • Sprint 90 (Jul 2022)
    • 0.1

      Agent data request with Zabbix agent version 6.2.0:

       

      {
          "request": "agent data",
          "session": "dd9d15a5c3b139432f5837343d83b072",
          "data": [
              {
                  "host": "Zabbix6.2-client",
                  "key": "agent.ping",
                  "value": "1",
                  "id": 137,
                  "clock": 1657871788,
                  "ns": 280552266
              }
          ],
          "clock": 1657871788,
          "ns": 280799091
      }
      

      That's correct as documented in https://www.zabbix.com/documentation/current/en/manual/appendix/items/activepassive#sending-in-collected-data .

      However, Agent data request with Zabbix agent 2 version 6.2.0:

      {
          "request": "agent data",
          "data": [
              {
                  "id": 1,
                  "itemid": 37427,
                  "value": "0.000000",
                  "clock": 1657872827,
                  "ns": 1477854
              }
          ],
          "session": "7a1ba508b00444bdea56d4c319fcbb23",
          "host": "Zabbix6.2-client",
          "version": "6.2"
      }

      Note that host name is now outside the data array. That's not documented in the link above.

       

            martins-v Martins Valkovskis
            markkul Markku Leiniö
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: