Files
Cactidocumentation/Multi-Site-Deployment.md
T

6.0 KiB

Deploy Cacti across multiple sites

Start with one site, one collector and one representative device. Expand only after you can explain who owns a missing sample, where its graph is stored and who receives an alert. Use this guide as the shared rollout procedure for the ISP and hospital examples.

Choose where to poll

Site condition Starting design What to measure in the pilot
Small branch reachable from headquarters Use the main collector over the management network. Poll duration and missing samples during a busy hour.
High-latency WAN or devices reachable only inside the site Put a remote collector near those devices. SNMP results from the collector and synchronization with the main server.
Several reachable sites with separate owners Start with one collector and a Cacti Site per location. Operator access to graphs and correct notification routing.
Site with an independent failure domain Assign a local collector and arrange a second observation from outside the site. Which system can report a WAN failure while the site is isolated.

A Site groups inventory. A Data Collector runs polling jobs. A graph tree organizes what users see. Configure and test permissions separately. Record the site, collector, device address, polling interval, management network, owner, and on-call destination in the rollout list.

Bring up the first site

  1. Install the main server. Confirm its scheduled poller finishes within the polling interval and produces a populated local graph before adding a remote site.
  2. Create a Site. If it needs a collector, follow Remote Poller Setup. Use matching Cacti versions, a local database at the remote site, and the documented connections in both directions between primary and remote databases.
  3. Configure read-only SNMP access on one approved device. Verify that the assigned collector can read the required objects. In Devices select the site, collector and device template. Re-run the interface query and select one known active port when creating graphs.
  4. Compare the interface name, direction, units and latest graph time with the device. Allow two successful samples for a counter-derived rate. If the query is empty, check the SNMP view from the assigned collector. If the graph stops updating, check the collector log and poll duration.
  5. Place the graph on a site tree. Sign in with a site operator account and verify both an allowed graph and a graph outside its remit by URL. Give the central operations account access to the agreed cross-site view.

Install the plugins you will use

Select a plugin release whose INFO supports the installed Cacti build. Read its plugin manual for dependencies and upgrades. Extract each plugin under plugins/<directory> on the installation that will run it. In Console > Configuration > Plugins, install and enable it. Grant the required realms through user or group management. For multi-collector plugins, follow that plugin's deployment instructions for files, settings and data on remote collectors.

Job Plugin directory First configuration and acceptance check
Alert on a measured value Thold, thold Create a notification list, then a threshold for one known data source. Use a test recipient and confirm breach and recovery.
Check a service from a specific site Service Checker, servcheck Grant Service Check Admin to the check owner. Add an HTTPS test, select the collector, and check the time, result and duration.
Schedule planned work Maintenance, maint Create a one-time window, associate a supported device or test, and verify that notifications resume afterward.

For example, after staging a compatible Thold release in plugins/thold, run this from the Cacti root as the Cacti administration account:

php cli/plugin_manage.php --plugin=thold --install --enable

Confirm Thold is enabled in Plugin Management. Grant the operator the View Thresholds realm and give threshold administration to the team that maintains the rules. Use a test recipient for the first alert.

Rehearse a WAN outage and recovery

Use a test collector or an approved maintenance window. Record its last completed poll and the latest sample visible centrally. Isolate only the test WAN path while keeping a local device reachable. Record what the remote poller logs, what the central graph shows, and which alert path can still reach the on-call team. Restore connectivity and check the next collector heartbeat, the device's latest sample and any gap or delayed data. Record the observed gap and recovery time before assigning an outage tolerance to that site.

Repeat and hand over

Roll out a small batch of similar devices. Compare poll completion time, database load and sample age with the pilot before adding the next batch. For each site, give the operator a known-good graph, the alert recipient, the maintenance owner and the recovery procedure. Test restoration of the database, RRD files and plugin configuration on an isolated instance.

Operating procedures

Plugin setup references


Copyright (c) 2004-2026 The Cacti Group