
Hello everyone,
We were making sure that the statistics and reporting was displaying accurate information for clients. When we turned on all the statistics in the screenshot attached, everything worked as expected. As soon as we ticked anything additional to display such as Memory usage.. we receive the following error in the console:
bundle.min.js?19469999999999901:2 Uncaught ReferenceError: value3 is not defined at onLoad (one_history.cgi?id=1584549160289670&start=1584988509&period=86400&stat=cpuio&stat=cpuidle&stat=cpukernel&stat=load&stat=load15&stat=load5&stat=cpuuser&stat=memcached&stat=bin&stat=bout&stat=diskfree&stat=diskused&stat=diskratio&stat=memfree&stat=memtotal&stat=memratio&logscale=1:211) at Object.snippets.page.render (bundle.min.js?19469999999999901:249) at HTMLDocument. (bundle.min.js?19469999999999901:255) at l (bundle.min.js?19469999999999901:2) at c (bundle.min.js?19469999999999901:2)
Issue is not dependant on linear or logarithmic X/Y scaling.
The page remains gray and does not load. Please help, we need clients to be able to view all their statistics. Looking forward to hearing back from you guys.
Comments
Hi,
Thanks for reporting. I have fixed that issue on our repos but you would have manually open:
and move
..one line up, so it looks like this:
..I given that more tests and it seems incorrect. :(
I will have a closer look tomorrow.
Okay, fixed finally.
Jamie, I don't see how would that be possible to make it work otherwise. Some data cannot be combined. At the same time it satisfies Timeplot and that's okay for now.
@thedaemexco
To fix this, find in earlier mentioned file:
.. and replace with:
Submitted by JamieCameron on Tue, 03/24/2020 - 22:23 Comment #7
Ilia - what two kinds of stats cannot be combined in this case?
Submitted by JamieCameron on Tue, 03/24/2020 - 22:24 Comment #8
I can't see how that code change would help, because $stat and $axis are going to end up with the same values regardless.
Hello guys, thank you for the response. We will attempt the code change and let you guys know what happens. If there is anything else on your end, please feel free to share. Thanks!
Not exactly, there is valueX clash.
Try selecting the following or use this URL to see how it fails with an old code:
one_history.cgi?id=0&start=1585040701&period=86400&stat=cpuio&stat=load&stat=diskratio&stat=memfree&stat=memtotal&logscale=0
or select at the same time:
CPU IO wait time, Disk used percent, Memory free, Memory limit.
The same happened on Virtualmin.
Hello team, we can confirm that the changes made according to comment #6 has resolved the issue! Much appreciated. This issue can be closed. Stay safe out there guys!
Submitted by JamieCameron on Thu, 03/26/2020 - 01:10 Comment #12
Odd, I wasn't able to reproduce this - bug if it works, great! Ilia, can you check this fix in?
Jamie, try to pick more stats to display at one time.
Yes, Jamie, I already did @fcab395 and @7f9ef49
Submitted by JamieCameron on Sat, 03/28/2020 - 20:02 Comment #14
Great, thanks!
This was fixed :D