Today I a LibreNMS installation from a server to docker instance with the following steps:
copy:
/usr/local/www/librenms/rrd
to /data/librenms/librenms/rrd
chown -R librenms:librenms rrd
Then:
mysqldump -u librenms --set-gtid-purged=OFF -p --opt librenms > librenms.sql
then
mysql librenms < librenms.sql
During the migration all docker images were down except librenms_db
Then restarted all docker images
All the hosts show up and polling is working, new graphs are showing up, old and new rrd’s are in the same directory (/data/librenms/librenms/rrd/$hostanme). The only thing is that old graphs are empty, under the graphs I’m seeing “-nan”
I also tried delete database librenms;
then mysql librenms < librenms.sql
, same issue