can any one help me to find out how can i restore my graph history.
i was updatin librenms server by adding an interface, suddenly i lost all graph since list year, t is only graphing graph from starting from time of change,
find the output on /opt/librenms/validate.php
[OK] Composer Version: 1.6.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Wed, 04 Apr 2018 08:00:23 +0000
[FIX] Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Not sure what you mean by adding an interface but if you mean a new network port to the actual LibreNMS server then this is unrelated to that I’m sure.
However you can’t get data back, we only store it in rrd so if those files have gone or been changed then that’s it.
Do you actually mean ALL graphs though or just port graphs for one device?
Thanks for the reply
sorry, i was adding an network port to librenms server.
Librenms was only graphing 1 device so far, so i missed ALL ports graph of the device.
Most likely the ifindex has changed. You will find the old ports in the rrd/$hostname/port-id*.rrd. Most likely if you rename the old named one (shown with an older modified date/time) over the new one it will show up.
Also look in the docs for port association mode, you will need to set it to ifName.
i read somewhere you mentioned when deleting a device, graphs are not deleted completely, can you help me to recover if possible the graph from January,
looking under /opt/librenms/rrd/device, it appear only graph of April
drwxrwxr-x 2 librenms librenms 12288 Apr 16 10:19 .
drwxrwxr-x 8 librenms librenms 4096 Apr 9 02:10 …
-rw-rw-r-- 1 librenms librenms 125000 Apr 16 10:45 hr_processes.rrd
-rw-rw-r-- 1 librenms librenms 125000 Apr 16 10:45 hr_users.rrd
-rw-rw-r-- 1 librenms librenms 248192 Apr 16 10:45 mempool-junos-220.127.116.11.rrd
-rw-rw-r-- 1 librenms librenms 248192 Apr 16 10:45 mempool-junos-18.104.22.168.rrd
-rw-rw-r-- 1 librenms librenms 3204800 Apr 16 10:45 netstats-icmp.rrd
-rw-rw-r-- 1 librenms librenms 125000 Apr 16 10:45 netstats-ip_forward.rrd
-rw-rw-r-- 1 librenms librenms 1972880 Apr 16 10:45 netstats-ip.rrd
-rw-rw-r-- 1 librenms librenms 3574376 Apr 16 10:45 netstats-snmp.rrd
-rw-rw-r-- 1 librenms librenms 494576 Apr 16 10:45 netstats-udp.rrd
-rw-rw-r-- 1 librenms librenms 494576 Apr 16 10:45 ospf-statistics.rrd
-rw-rw-r-- 1 librenms librenms 125000 Apr 16 10:45 ping-perf.rrd
-rw-rw-r-- 1 librenms librenms 125000 Apr 16 10:45 poller-perf-applications.rrd
-rw-rw-r-- 1 librenms librenms 125000 Apr 16 10:45 poller-pe
Thanks, Kind Regards
When deleting a device it does delete the graph data (rrd files). If for some reason it hasn’t, just re-add the device and the old files be used.
Basically, we lost all the graphs after adding a network interface card. We can only see the graphs after that upgrade. Is there a way to recover old graphs? Where does LibreNMS store all old graphs? how do we do a copy/backup of all those graphs for future reference.
Thanks for your guidance