Have done something and graphs1090 only shows data since May 27. There is a directory named /var/lib/collectd/rrd/2021-05-27. Is it possible to merge the rrd files with the ones in localhost? Have tried copying the folder to /tmp and running Backup and restore GitHub - wiedehopf/graphs1090: Graphs for readsb / dump1090-fa / dump1090 (based on dump1090-tools by mutability) but have been unsuccessful. Any suggestions or should I give up and enjoy the data since 05-27?
pi@c16494:/var/lib/collectd/rrd $ ls -l
total 15088
drwxr-xr-x 9 root root 4096 Jun 4 16:14 2021-05-27
drwxr-xr-x 10 root root 4096 Jun 2 11:16 2021-06-02
drwxr-xr-x 10 root root 4096 Jun 4 15:59 2021-06-04
drwxr-xr-x 10 root root 4096 May 30 16:42 graphs1090-writeback-backup1
drwxr-xr-x 10 root root 4096 May 30 16:42 graphs1090-writeback-backup2
drwxr-xr-x 10 root root 4096 May 30 16:42 localhost
drwxr-xr-x 8 root root 4096 Nov 18 2019 rme_rra_backup
pi@c16494:/var/lib/collectd/rrd $ ls -l 2021-05-27
total 15088
drwxr-xr-x 2 root root 4096 Jun 2 11:23 aggregation-cpu-average
drwxr-xr-x 2 root root 4096 Jun 2 11:23 df-root
drwxr-xr-x 2 root root 4096 Jun 2 11:23 dump1090-localhost
drwxr-xr-x 2 root root 4096 Jun 2 11:23 interface-eth0
drwxr-xr-x 2 root root 4096 Jun 2 11:23 interface-wlan0
-rw-r--r-- 1 root root 15421440 Jun 4 16:16 rrd.tar
drwxr-xr-x 2 root root 4096 Jun 2 11:23 system_stats
drwxr-xr-x 2 root root 4096 Jun 2 11:23 table-localhost
The last experiment tried to tar 2021-05-27 and copy to /tmp then restore
pi@c16494:/var/lib/collectd/rrd/2021-05-27 $ sudo rm rrd.tar
pi@c16494:/var/lib/collectd/rrd/2021-05-27 $ sudo tar cf rrd.tar .
tar: ./rrd.tar: file is the archive; not dumped
pi@c16494:/var/lib/collectd/rrd/2021-05-27 $ sudo tar cf rrd.tar *
tar: rrd.tar: file is the archive; not dumped
pi@c16494:/var/lib/collectd/rrd/2021-05-27 $ ls -l
total 15088
drwxr-xr-x 2 root root 4096 Jun 2 11:23 aggregation-cpu-average
drwxr-xr-x 2 root root 4096 Jun 2 11:23 df-root
drwxr-xr-x 2 root root 4096 Jun 2 11:23 dump1090-localhost
drwxr-xr-x 2 root root 4096 Jun 2 11:23 interface-eth0
drwxr-xr-x 2 root root 4096 Jun 2 11:23 interface-wlan0
-rw-r--r-- 1 root root 15421440 Jun 4 16:16 rrd.tar
drwxr-xr-x 2 root root 4096 Jun 2 11:23 system_stats
drwxr-xr-x 2 root root 4096 Jun 2 11:23 table-localhost
pi@c16494:/var/lib/collectd/rrd/2021-05-27 $ cp rrd.tar /tmp
pi@c16494:/var/lib/collectd/rrd/2021-05-27 $ sudo /usr/share/graphs1090/rrd-integrate-old.sh /tmp
Warning: The unit file, source configuration file or drop-ins of collectd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-heatmap_and_state.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-signal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-background.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-peak_signal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_aircraft-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-remove_stale.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_range-minimum.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-demod.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-positions.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_tracks-single_message.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-noise.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-local_accepted.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_range-max_range.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-remote_accepted_0.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_range-quart1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-median.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-aircraft_json.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_mlat-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-quart1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-min_signal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-trace_json.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-strong_signals.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-globe_json.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_cpu-reader.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_range-median.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-local_accepted_0.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-quart3.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_dbfs-NaN.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_range-quart3.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_tracks-all.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-remote_accepted_1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_gps-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_tisb-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-local_accepted_1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./dump1090-localhost/dump1090_messages-remote_accepted.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-wlan0/if_errors.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-wlan0/if_packets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-wlan0/if_octets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-wlan0/if_dropped.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-eth0/if_errors.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-eth0/if_packets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-eth0/if_octets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./interface-eth0/if_dropped.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-idle.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-softirq.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-steal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-interrupt.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-nice.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-system.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-wait.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./aggregation-cpu-average/cpu-user.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./table-localhost/gauge-cpu_temp.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./system_stats/memory-used.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./system_stats/memory-buffers.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./system_stats/memory-cached.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./system_stats/memory-free.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./disk-mmcblk0/disk_ops.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./disk-mmcblk0/disk_time.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./disk-mmcblk0/disk_merged.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./disk-mmcblk0/disk_octets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./disk-mmcblk0/disk_io_time.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./df-root/df_complex-reserved.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./df-root/df_complex-used.rrd.gz: No such file or directory
ERROR: error checking for source RRD /tmp/./df-root/df_complex-free.rrd.gz: No such file or directory
Warning: The unit file, source configuration file or drop-ins of collectd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
All done!
Wait a minute and you should be showing graphs that have a gap for the last 14 days or whatever.
Merging is possible but i’d have to look it up and it’s laborious … i’d probably have to write scripting or you’d have no chance of completing the process (no offence).
And i’m not gonna write scripting, sorry
Will try using the old data. Looked like https://github.com/wiedehopf/graphs1090/blob/master/rrd-integrate-old.sh was supposed to merge data. Yes, there are many rrd files to merge.
Nice to see the old data back to Jan 2020 have tar files of the recent data
Am puzzled why it was looking for .gz files
pi@c16494:/var/lib/collectd/rrd $ sudo systemctl stop collectd
pi@c16494:/var/lib/collectd/rrd $ sudo /usr/share/graphs1090/rrd-integrate-old.sh /var/lib/collectd/rrd/2021-05-27
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-heatmap_and_state.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-signal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-background.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-peak_signal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_aircraft-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-remove_stale.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_range-minimum.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-demod.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-positions.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_tracks-single_message.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-noise.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-local_accepted.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_range-max_range.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-remote_accepted_0.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_range-quart1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-median.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-aircraft_json.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_mlat-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-quart1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-min_signal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-trace_json.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-strong_signals.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-globe_json.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_cpu-reader.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_range-median.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-local_accepted_0.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-quart3.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_dbfs-NaN.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_range-quart3.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_tracks-all.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-remote_accepted_1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_gps-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_tisb-recent.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-local_accepted_1.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./dump1090-localhost/dump1090_messages-remote_accepted.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-wlan0/if_errors.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-wlan0/if_packets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-wlan0/if_octets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-wlan0/if_dropped.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-eth0/if_errors.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-eth0/if_packets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-eth0/if_octets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./interface-eth0/if_dropped.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-idle.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-softirq.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-steal.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-interrupt.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-nice.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-system.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-wait.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./aggregation-cpu-average/cpu-user.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./table-localhost/gauge-cpu_temp.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./system_stats/memory-used.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./system_stats/memory-buffers.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./system_stats/memory-cached.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./system_stats/memory-free.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./disk-mmcblk0/disk_ops.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./disk-mmcblk0/disk_time.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./disk-mmcblk0/disk_merged.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./disk-mmcblk0/disk_octets.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./disk-mmcblk0/disk_io_time.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./df-root/df_complex-reserved.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./df-root/df_complex-used.rrd.gz: No such file or directory
ERROR: error checking for source RRD /var/lib/collectd/rrd/2021-05-27/./df-root/df_complex-free.rrd.gz: No such file or directory
All done!
'''
Like this …
It uses the /var/lib/collectd/rrd/localhost as a template … and graphs1090 now only saves to disk gzipped once a day to prevent early sd-card fatigue.
(only writes 10 MB a day compared to up to 50 MB per hour before)
Anyhow for the integration script to work the files need to be uncompressed .