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

Queue is incorrectly calculated in case of Distributed Monitoring (and maybe also with standalone server)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.8, 1.8.1, 1.8.2
    • Frontend (F)
    • None
    • zabbix server 1.8.2 (but the problem was present on 1.8 too) configured with at least one Node

      I was getting too many queued items so I decided to check the code that calculated these items, checking the queue.php (side note, maybe some more comments in the source code would help), I noticed line 1732:

      $nextcheck = $delay * floor($now / $delay) + ($itemid % $delay);

      I'm not 100% sure what this code does, but finding the $itemid here is quite strange, even more since the itemid value is different in case of distributed monitoring is a really large number and is different for each item, so I changed it to $now and the queue seems to be normal, although I'm not sure if I did the right change.

        1. mysql_query.png
          20 kB
          Gabriele Armao
        2. zabbix_queue.png
          82 kB
          Gabriele Armao

            Unassigned Unassigned
            gabriele.armao Gabriele Armao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: