Linux

Where Does Cacti Store Config and Graphs?

Cacti keeps database settings in include/config.php with devices in MySQL and graphs in RRA files.

Last updated

Cacti splits state between a PHP config file and a database. The config.php file under include carries database credentials and paths for the install. Devices and graphs persist as rows in MySQL with RRD data in the rra folder.

Poller output writes RRA files on schedule beside scripts and resources. Web root placement varies by host, so relative paths stay constant. Back up the config with a database dump and the rra folder.

Where Cacti stores this, by platform

Linux
[WebRoot]/include/config.php

Database credentials and paths live here. Devices persist as rows in MySQL. Graph data accumulates as RRA files under rra.

Frequently asked questions

How do I back up Cacti?

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

Where are Cacti graph images?

Rendered on demand from RRA files, not stored as images. The rra folder holds the data behind every graph. Keep it with the database.

Notice an outdated path? Let us know.