Merging one Librenms into another

Hello All,

I’m just taking over helping with some tasks in a new company that is merging. I have searched through this group and I’ve been unable to find how you can merge databases of librenms into one. This would be bringing the export from one instance and merging it into another. I’d like to be able to bring all of the historical data as well as the devices if at all possible.

Is this something that is possible? Thank you very much in advance for reading this and any help you may be able to give.

Hi @James_Hindley
This is theoretically possible, but there is absolutely nothing existing to do it for you. And it will be very difficult to do it manually :
Merging 2 LNMS would require:

  • Start with 2 LibreNMS instances running the exact same version.
  • Stop any polling or discovery.
  • Change the IDs of each column of the “to be merged” DB to ensure the unicity.
  • Merge the data into the “receiving DB”
  • Rename all the RRDs from the “to be merged” instance to match the new IDs
  • Move the RRDs and directory to the “receiving LNMS”
  • Restart polling and discovery

All of this can only exist if no device name collide, nor IP address, of course.

So I would suggest to get rid of the history of one of the 2, just create all the new devices into the “receiving LNMS” and keep the old LNMS as read-only to view the historical data …

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.