Rrd graps not working

How to run statistics/rrd tool ?
When i try open graphs in statistics-luci. Web gui create empty page witch message :

You can install additional collectd-mod-* plugins to enable more statistics.

I tried to install some example packages and start it in luci… but still with same result in graps page.

opkg install collectd-mod-cpu collectd-mod-interface collectd-mod-memory collectd-mod-ping collectd-mod-rrdtool collectd-mod-wireless

I tried comands to run statistics and collectd

/etc/init.d/luci_statistics enable
/etc/init.d/collectd enable

Still not work.

I try remove all modes of collectd install everythink back. Still same result.

I i want to save this database to flash disk? What i must change ?

Hello,
Before you asked, you should use search function. :slight_smile:

I did it for you.

When you want save graphs to usb flash drive look here:

Totally reasonable questions. Provided links does not provide an answer.

The actual answer is "This should be working as it is. Thanks for pointing it out so that everyone else not getting this to work can rest their efforts… The processes supposed to start the collection of data and rendering of graphs are not working properly (probably due to a script-error or some other mis-configuration). Eventually the checkbox “Enable” will do this in a future release. As it is supposed to.

As the product is at beta stage there is lots of stuff that is still not working as it is supposed to. Bear with it for some time if you do not have the knowledge/time/energy/will to try to work it out on your own (which probably could be done as well…)."

I was stuck on this for a while and the mistake that I made was I edited the directories but I failed to copy the types.db from the original location (/usr/share/collectd/) to where I changed it to. I also had to create all the empty folder for the other paths I modified. Hopefully this helps someone.

My eror looks more complex than only install and run.
I tried to do everythink from all mentioned forums and what i find on google :smiley:
But it router not install necessary files.

I haven´t direcrory like /var/run/collectd
/etc/collectd/ too not found

/usr/lib/collectd > there are plugin files
/usr/share/collectd/types.db > this db i have too…

but /tmp/rrd is not exist.

So there is problem with instalation of this packages.
But install proces write me that is installed and updated.

root@turris:/# opkg install collectd
Package collectd (4.10.8-3) installed in root is up to date.

Necessary rrd is too installed but in real missing…

Ensure you do not have old configs at place when re-installing packages. If there is glitch in config, new package will use it and you will end up in very same situation. (i have just one empty option line in “df” plugin, or in ‘ping’ empty hostname… which kind of prevent collect/rrd to work properly). When restarting rrdtool be sure you have no old rrd files at place.

There is similar thread about statistics Where are statistics graphs?

Hi, I actually think this is a bug from luci_statistics…
To get it working again, log in via ssh then

mkdir /etc/collected && mkdir /etc/collectd/conf.d && /etc/init.d/collectd start

If in doubt - run collectd on the cmd line and check for errors

Cheers.

1 Like

small typo there:

mkdir /etc/collectd && mkdir /etc/collectd/conf.d && /etc/init.d/collectd start

4 Likes

@JamesT42 you’re right, good spot!

Cheers.

Hi, sorry, but I’m still having the issue.

I red and tried all from:

and tried:

/etc/init.d/luci_statistics enable
/etc/init.d/collectd enable
opkg list | grep collectd-mod
opkg install collectd-mod-cpu collectd-mod-interface collectd-mod-memory collectd-mod-ping collectd-mod-rrdtool collectd-mod-wireless
mkdir /etc/collectd && mkdir /etc/collectd/conf.d && /etc/init.d/collectd start

… no success.
On luci /admin/statistics/graph
Im still having:

Statistiky
The statistics package uses Collectd to gather data and RRDtool to render diagram images.
You can install additional collectd-mod-* plugins to enable more statistics.

I can see gathered data on fs. Just I cant render any graphs from it.
(turris omnia 1g)

Hi, I had similar issue (I tried it with clean Omnia with latest updates) and on the end I got it working

However I can not say precise steps how I got it work because I tried several things, snapshots rollback included.

What I roughly did after one rollback is that first I tried
/etc/init.d/luci_statistics start
/etc/init.d/collectd start

I think there was some message in log that some folders does not exists. E.g. /tmp/rrd and I think some more.
So I went to luci -> statistics -> setup and went trough the settings. I changed nothing but on the end (when RRDTool tab was still active) I pressed Save & Apply button

After that I did
/etc/init.d/collectd restart
I think there was still some complain that config file for collectd does not exists in etc but when I checked /tmp/rrd the directory was already there and when I reloaded luci and went to - statistics - graphs, links Interfaces, Wireless and System were suddenly visible.

Maybe I will try to reproduce it when I will have some more time again… As I said I tried too many things and I can not say for sure now what was the real reason that it started to work.

2 Likes

Have also problem with ping plugin:

2017-01-20T09:26:10+01:00 err collectd[19995]: ping plugin: ping_send failed: Permission denied
2017-01-20T09:26:40+01:00 err collectd[19995]: ping plugin: ping_send failed: Permission denied

But also have problem with this:

2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/uptime/uptime.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-80-local/tcp_connections-FIN_WAIT1.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-80-local/tcp_connections-CLOSING.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-443-local/tcp_connections-SYN_RECV.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-443-local/tcp_connections-CLOSE_WAIT.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-443-local/tcp_connections-LISTEN.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-22-local/tcp_connections-SYN_SENT.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-22-local/tcp_connections-SYN_RECV.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/tcpconns-22-local/tcp_connections-LISTEN.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_packets-eth0.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_errors-eth0.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_octets-br-lan.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_packets-br-lan.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_errors-br-lan.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_octets-tun0.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/interface/if_packets-tun0.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/cpu-0/cpu-user.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/cpu-0/cpu-nice.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/cpu-0/cpu-system.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/cpu-0/cpu-steal.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900808 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/cpu-1/cpu-user.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900818 (minimum one second step)
2017-01-20T09:27:10+01:00 warning collectd[19995]: rrdtool plugin: rrd_update_r failed: /mnt/tsd/rrd/turris/cpu-1/cpu-interrupt.rrd: illegal attempt to update using time 1484900800 when last update time is 1484900802 (minimum one second step)
2017-01-

Adjust your time on the router or delete the RRDs. Seems you did a jump to the past so the RRDs are not consistent.

Ou :frowning: Time is ok, but is possible to backup/restore RRDs (or fox example defrag them)?

Stop the service and delete some lines at the end of the RRD file so the last entry is in past not future.Start service again and check.

Uff, in all rrd files?

In those the log is complaining about… Or deleting :wink: