Ad Widget

Collapse

Zabbix Graph Widget not Updating

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Moultrex
    Junior Member
    • May 2021
    • 4

    #1

    Zabbix Graph Widget not Updating

    Hello.

    I tried 3 different installation of Zabbix 5.4 with Centos 8.

    The problem is in Dashboard the Graph widget is not updating no matter what interval you choose.

    Create a Host and a simple Web Scenario to check an online url.

    Then in Dashboard when you add a widget and configure Type: Graph and show the response time with an interval 10s then save it, the graph is not updating. It is stucked.

    In 5.2 version of Zabbix it is working normally.

    If you select Graph Classic > source simple graph > response time from the web scenario, it is working normally.

    Please check it.
    Last edited by Moultrex; 23-05-2021, 15:07.
  • Moultrex
    Junior Member
    • May 2021
    • 4

    #2
    I tried it also Clean Install with Ubuntu 20.

    The graph widget for a simple web scenario check it is not updating automatically no matter what interval you choose.

    Comment

    • Moultrex
      Junior Member
      • May 2021
      • 4

      #3
      Update 2: When you set -> Set custom time period in the widget (now-5m now) then the widget's timeline starts to work and move normally, but only if you set it in the widget's custom time period. If you leave it unchecked and use the dashboard time period it does not work.

      Comment

      • orbital
        Senior Member
        • Dec 2019
        • 104

        #4
        Hi, I have the same problem, but your method did not help me.

        Comment

        • Moultrex
          Junior Member
          • May 2021
          • 4

          #5
          I have opened a support ticket and they aknowledged the problem.

          We have to wait and fix it in a newest release now.

          Comment

          • blagarswinth
            Junior Member
            • Feb 2020
            • 2

            #6
            Originally posted by Moultrex
            Update 2: When you set -> Set custom time period in the widget (now-5m now) then the widget's timeline starts to work and move normally, but only if you set it in the widget's custom time period. If you leave it unchecked and use the dashboard time period it does not work.
            Thank you! This worked for me. Would be nice if the bug gets fixed, but for now this is working.

            Comment

            • Zbbixuser
              Member
              • Jun 2021
              • 45

              #7
              Hi

              I have the same problem on Ubuntu 18.04. Zabbix 5.4.3. Please fix it!

              Fast solution from link:
              In class.widget.svggraph.js line 64

              _getUpdateRequestData() {
              if (this._time_period.to == 'now') {
              const newTime = Math.floor(Date.now() / 1000);
              const diff = newTime - this._time_period.to_ts;
              if (diff>1) {
              //console.log("new diff" + diff);
              //console.log("ts_to" + newTime);
              //console.log("ts_from" + (this._time_period.from_ts + diff));
              this._time_period.to_ts = newTime;
              this._time_period.from_ts = this._time_period.from_ts + diff;
              }
              }
              return {
              ...super._getUpdateRequestData(),
              from_ts: this._time_period.from_ts,
              to_ts: this._time_period.to_ts
              };
              }

              Last edited by Zbbixuser; 26-08-2021, 06:27.

              Comment

              Working...