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

Graphs don't auto-refresh or update when changing time/scale

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 3.0.5
    • Frontend (F)
    • None

      When clicking on a new time-scale (zoom) or start/end-time or just leaving the graphs auto-updating, a "spinning circle of death" appears and the graph never reloads. Reloading the page shows the new data, but the auto-update is still broken.

      this is due to some calls in jQuery being deprecated. In short, the following

      http://api.jquery.com/error/
      and here:

      http://stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error

      which states the following:

      I've come across the same issue on my application. After some digging, I found this statement in jQuery blog,

      .load, .unload, and .error, deprecated since jQuery 1.8, are no more. Use .on() to register listeners.

      The fix is simple, in flickerfreescreen.js replace these two calls:

                                              .on("error", function() {
                                                      screen.error++;
                                                      window.flickerfreeScreen.calculateReRefresh(id);
                                              })
                                              .on("load", function() {
                                                      if (screen.error > 0) {
                                                              return;
                                                      }
      
      

      the original code used .error(function(){ and .load(function(){

      Hope it helps!

            zabbix.dev Zabbix Development Team
            garci66 Diego Garcia del Rio
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: