Comments (15)
I checked all my stats and x-scale look good. I don't really understand your issue maybe, pasting a screenshot will help to understand.
from rpi-monitor.
With alls Disks and Mem at the same time the x-scale is static like this:
Something has to be undefined and this could cause this.
With the error on last issue (rrd not found) I have seen, that missing information may be filled with other information. Has to be something to do with internal enumeration I think.
or I'm completely on the wrong way.
I don't know, where to start with to find the reason for this timescale problem.
from rpi-monitor.
I'm suspecting the graph update to be hang.
It can be checked by using the 2 weeks view and check the date displayed is correct.
If it looks ok, does the data still updated and reflecting the disk usage?
You can create a file with the command 'dd' and see if the graph is updated.
If it is hang, removing the rrd files and restarting should fix the issue.
from rpi-monitor.
No, the graphs are written well.
Changing the views shows that, because there you can see the start of logging and its length fits to the correct graphs.
But even this Weeks/Month view is with fixed scale!
Here's a zoomed view:
I will make more tests tomorrow ...
from rpi-monitor.
It's weired.
Now after reload the scale has jumped to another range (don't know why)
It's not the correct scale, but later as before. O_o
Edit: Exactly on the right border time I made a reboot of the raspberry!
There has to be a relation with this..
from rpi-monitor.
Did you try to delete the RRD and let RPi-Monitor recreate them?
Also, on the current RRD, I feel that rrdtool
command can return some interresting info but I don't know what and how, this is just an idea to follow.
from rpi-monitor.
Had no time for systematic checks, yet.
I will have a look at it later this weekend or next week.
The empty.rrd is newly generated with your last fix.
But there has to be some other reason for this behaviour because I had this problem before with 2.4.
But I don't know when and why it firstly occurs.
I've seen some weired beaviour of the graphs when there were the rrd-missing-messages and I want to understand this.
I would like to find the reason for this to avoid it in future and if I don't find where this comes from, I will completely remove rpimonitor and install it new - I think, this should fix it.
Because noone else seems to have this problem, there has to be a special thing with my installation.
Let's leave this issue open until I made some more investigations.
from rpi-monitor.
Hello all. I just signed up to git, to confirm the issue which deMattin discovered. I'm using RPi-Monitor for several weeks but didn't notice that some ticklabels showed the wrong time.
As an example the graph for swap is using the lastupdate time from empty.rrd not from swap_used.rrd:
the graph for cpu is using the correct lastupdate timestamp from load1.rrd:
I used following command on my rpi to see xml-dumps of rrds:
rrdtool dump swap_used.rrd | less
There may be some wrong calculation on the client side in js-code for some reason?
from rpi-monitor.
I think i found an easy way to fix this for me. After being created, empty.rrd is never updated again, so the timestamp remains always the one of the creation. What would happen, if it would be updated like all other rrds after every delay?
So I tried the following:
- stop rpimonitor
- deleted all rrds in /usr/share/rpimonitor/web/stat
- added the following lines to /etc/rpimonitord.conf.d/default.conf:
dynamic.16.name=empty
dynamic.16.source=false
dynamic.16.regexp=(.*)
dynamic.16.postprocess=
dynamic.16.rrd=GAUGE
- restart rpimonitor
Now empty.rrd will be updated after every delay as all other rrds. The value doesn't matter and will always be the same (NaN) but the timestamp is updated. This is a workaround I can live with. 👍
Any comments on this?
from rpi-monitor.
I made some changes and tests but couldn't find another way to fix it.
I think, eagle-1's solution is a save and good way to define the scale.
It's also more logical this way (y-values of static and dynamic have both same max. x-value).
I made this changes too and you don't need to delete the rrds.
You just need to:
- sudo service rpimonitor start
- make the changes in /etc/rpimonitord.conf.d/default.conf as described by eagle-1
- sudo service rpimonitor start
Thanks!
from rpi-monitor.
empty.rrd needs to be generated each time a static data need to be drawn into a graph.
The embedded server does that. Bug is then fixed.
With external server, it is not possible. Restarting RPI-Monitor periodically will improve the accuracy.
from rpi-monitor.
With the newest Version 2.6 of RPi-Monitor I have the bug again and the fix as described from eagle-1 didn't work anymore. It only occurs on graphs which also has a static line. How can that be fixed?
from rpi-monitor.
I do reopen this bug since it looks not fixed...
When I tested the fix I made (regenerating empty.rrd each time it is requested by browser). I didn't notice that it was in reality generated at start :-(.
empty.rrd is owned by root so it can't be regenerated by pi user.
To fix the issue and make my fix work, you should change the ownership of empty.rrd with the command:
sudo chown pi:pi /usr/share/rpimonitor/web/stat/empty.rrd
I'll update rpimonitord to generate empty.rrd with the correct ownership.
Until now, you can add the command described upper into /etc/init.d/rpimonitord. You may have to add a sleep before this command to let rpimonitor the time to generate the file.
from rpi-monitor.
Change ownership of empty.rrd to activate on demand regeneration.
This fix has been done into RPi-Monitor-deb.
from rpi-monitor.
Got bit by this because running with systemd two processes are started as root:root, but a third one as pi:pi. Hence empty.rrd
ends up owned by pi:pi, but installing from Git the /var/lib/rpimonitor path is owned by root:root and user pi can't actually update the file, hence the skewed time for some stats.
The fix (in my case at least): chown -R pi:pi /var/lib/rpimonitor
And add this to systemd:
...
[Unit]
...
User=pi
Group=pi
...
/PS: if running as user pi the CPU freq is null
, edit the line in templates/cpu.conf
like this: dynamic.1.source=sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
from rpi-monitor.
Related Issues (20)
- Perl error on Raspberry pi bullseye 64-bit HOT 3
- Why does Badge not work? HOT 1
- "undefined" entries in the Graph topic drop down box HOT 4
- Storage template does not work for 4TB SSD HOT 3
- Feature Request if it does not already exist - line continuation for .conf files
- I host my website with apache2 and want rpi monitor on subdomain
- 'http://giteduberger.fr rpimonitor/ Release' no longer has a Release file HOT 3
- question about config HOT 1
- Service Status via Labels and Bages, not being updated when service is brought down HOT 3
- 'Warning: unable to close filehandle FEED properly.' message repeats in log.
- Err:5 http://www.giteduberger.fr rpimonitor/ InRelease HOT 4
- Updating time Website HOT 1
- Suggestion: optimize .png images
- Perl issue appear in the log HOT 2
- unable to update RPi-Monitor to version 2.13 HOT 4
- RPi with HAT HOT 1
- RRD file is corrupt
- Services.conf issue. Netstat command not available running in docker container
- Date/Time in statistic charts are incorrect HOT 1
- Key is stored in legacy trusted.gpg keyring HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-monitor.