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

Zabbix api history.get sort issue

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.0.20
    • API (A)
    • None
    • Centos 7 x86_64

      Steps to reproduce:

      1. Create zabbix item - Type: Zabbix trapper, Type of information: Log
      2. Use zabbix_sender to send in log entries. zabbix_sender must send more that one entry in a second.
      3. Use history.get to retrieve data sorted as date.
      4. You should see that entries is not sorted in correct order. Meaning - when you use "limit": 1 as API parameter you will not get the last nor the first entry send by zabbix_sender depending on sortorder. Issue only occurs if you have multiple log entries send in at the same second.

      Result:
      See screenshot
      Expected:
      Results should be sorted the same way as we see from Zabbix web interface. Or there should be some way to list history in correct order as it was sent to Zabbix server.

            zabbix.dev Zabbix Development Team
            Vo Rai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: