Linux

Where Does LibreNMS Store Config and Data?

LibreNMS keeps settings in .env and config.php with devices in MySQL and graphs in RRD files.

Last updated

LibreNMS splits state between files and a database. The .env file carries database credentials while config.php holds app settings for the install. Devices and ports persist as rows in MySQL with graphs in RRD files.

Poller performance data lands in the RRD directory by device. Web root placement varies by host, so relative paths stay constant. Back up the env file with a database dump and RRD folders.

Where LibreNMS stores this, by platform

Linux
[WebRoot]/.env

Database credentials for the install live here. Devices persist as rows in MySQL. Graphs accumulate as RRD files under rrd.

Frequently asked questions

How do I back up LibreNMS?

Copy .env and config.php with a MySQL dump and the rrd folder. The set restores onto a fresh web root. Test restores on staging first.

Where are LibreNMS graphs?

As RRD files under the rrd folder of the install, one tree per device. The database maps files to ports. Keep both sides together.

Notice an outdated path? Let us know.