I recently updated 2 different ipfire installations to 188 and since then I noticed that QOS graphs are no longer auto-updating,while othe graphs does (system, network, etc…)
The graph works and can be manually refreshed, but the auto-update feature was nice.
I did not see anything related (or did I miss it ?) in the blog post about 188.
I just checked on my system and you are correct. The auto-update feature of the graph has stopped working. I don’t have a solution, but hopefully someone else does.
I also verified two other graphs do still auto-update: gateway and firewallhits. I didn’t check other graphs, so I can’t say for sure that the QoS graphs are the only ones whose behavior has changed.
FYI, I have a system on 188 that is auto-updating the QoS graphs. So it may not be the issue you thought. I don’t know why this system is auto updating and the one I checked earlier today is not, but there you go.
That’s interresting, I still have another ipfire to update, I’ll check this one after the update and see if it does auto-update. If so i’ll try to compare some files see if there is any differences.
I encountered some errors doing the update (related to packet signature) but after a retry everything the update passed, so I thought it was just a temporary glitch with a mirror.
Anyway that’s just a mild annoyance more than anything else, and probably will start working again after next update.
Hi, I made the original auto-update patch way back when. So I was curious to see what is going wrong.
The div box around the graph must have the class “rrdimage” for the script to find it. So unfortunately this breaks the javascript. And this is unnecessary because it is already done by the JS (if it could find the graph).
This is easy to overlook because the rest of the web interface doesn’t use anything like this.
But there is one difference: Apart from QoS, all other graphs have the time period “Day” by default. These graphs are only updated every 5 minutes.
Did you perhaphs manually select “Hour” to get to the faster auto update? If so, the update timer is (re)started at this moment.
Edit: For a better explanation, there are two different event handlers in rrdimage.js.
The first one runs on page load, looks for graphs and starts the auto-update timer. This one relies on the HTML class attribute, but at the same time can’t throw a “missing div box” error as there are also many pages without graphs.
The second one is attached to the “onclick” attribute and directly receives a handle of the graph box via this. So this one always works and has to restart the timer anyway after the user changed the time range.
Yes, I switched to hour to have a quicker update on the other graphs.
So if I understand correctly if you open a page which contains a graph and leave the default scale, it will never update, but if you change the scale then the auto-update will start working, right ? even if you switch back to the default/initial scale ?
Thanks for the feedback. I tested it in CU189 Testing, confirming the change was in rrdimage.js, and confirm the effect you found, that the problem is not solved.
When we manually tested it before submitted the patch, it looked like it had solved it.
I have flagged it to @ms and we will have another look at it.
It is in the master branch. The nightly build is running and when it has completed successfully then the patch fix will become available in the Update from CU188 to CU189 Testing.