Cacti: RRDtool Graphing With a Web Front End

Cacti: RRDtool Graphing With a Web Front End

Cacti is a web front end for RRDtool, and it has been doing that job since before most monitoring software existed.

Graphs, not alerts

The important thing to understand before deploying it: Cacti is a graphing system. Alerting is an addon, Thold, rather than a core feature.

That is the opposite emphasis from Nagios and Icinga, which alert well and graph poorly. Historically a great many networks ran both: Nagios to page, Cacti to look at.

Modern systems collapse that split. Prometheus with Grafana does metrics and alerting in one stack, and our monitoring guide covers it.

RRDtool, and what that implies

Round Robin Database files are fixed size, pre-allocating storage and averaging older data into coarser buckets automatically.

The consequence people do not expect: the resolution of old data is gone, not compressed. A year-old spike has been averaged into its neighbours and cannot be recovered. That is a deliberate trade from an era when disk was expensive, and it is why time-series databases that keep raw points have displaced it.

The upside is that an RRD file never grows, so capacity planning for the monitoring system itself is trivial.

Where Cacti still fits

An existing installation with years of graphs and templates. The data model is well understood, the SNMP templates for network gear are extensive, and it does not fall over.

For a new deployment, LibreNMS covers the same SNMP-autodiscovery ground with far less manual template work, and Prometheus covers everything else.

Operational notes

PHP, MySQL and a poller on cron or the faster spine poller. Our MariaDB guide covers the database.

Poller runtime is the scaling limit: if a five-minute poll takes longer than five minutes, gaps appear in every graph.

Operational caution

Cacti has a history of SQL injection and authentication CVEs. Do not expose it to the internet, keep it patched, and put it behind authentication you trust, per our Authelia entry.

SNMP v1 and v2c community strings travel in clear text.

License

Cacti is released under the GNU General Public License v2.