Files
Cactidocumentation/Data-Collectors.md
T
Thomas Vincent 741ad51355 docs: [1.2.x] refresh the front page, correct grammar and Markdown, and align plugin pages with their READMEs (#273)
* docs: [1.2.x] refresh the manual front page

The front page opened with version notes before saying what Cacti is,
used headings as sentences in the credits, and its table of contents
listed seven sections while the page has ten.

Open with a short description and a getting-started sequence, link the
website and forums, give the credits real headings, and list every
section in the table of contents in page order. Record Jeff Pasnak
under In Memoriam with a link to the 1.2.31 release announcement.
Correct label typos and wrap long entries with reference links.

Existing section anchors are unchanged, and every page is still linked.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] fix typos, unrendered headings and forum links

A check of every page linked from the front page found misspellings in
eleven pages, three Mactrack headings written without a space after the
hashes, which render as plain text, and two forum links still using
http.

Correct the spellings, add the missing space so the headings render,
and point the forum links at https, where they already redirect.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] align the plugin pages with the plugin READMEs

The supported plugins list and the Syslog and Mactrack pages had drifted
from the README and INFO files in the plugin repositories.

Update the descriptions that the READMEs contradict: Monitor's Thold
requirement, the Router Configs transfer methods, the ReportIt release
and Cacti versions, the WMI collection methods and its development
status, and NUT support in Apcupsd. Add the Syslog requirements, the
upgrade procedure, the dedicated database settings and the remote
collector settings, and correct the database grant and a misplaced
code fence. Add the Mactrack requirements and a short section on
history partitioning and ignored ports that links to the README.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] correct grammar, spelling and broken Markdown

A read of every page linked from the front page found grammar and
spelling errors throughout, and Markdown that does not render as
intended.

Correct grammar, spelling, punctuation and product-name capitalization
in 95 pages without changing headings, code blocks, link targets or
the meaning of the text. Repair the Markdown defects: a code fence in
the SSH tunnel how-to that never closed, malformed bold markers in the
user management and device defaults pages, a release notes table with
no blank line before it, split rows in the tree sorting table, and
LDAP list items missing their markers. Correct three interface labels
quoted with typos.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] correct statements that differ from the 1.2.x source

Reviewers of the linked pages flagged statements that looked wrong.
Each was compared with the Cacti 1.2.x source at 1523aa04b, and only
those the source or the page itself settles are changed.

Correct interface labels and option names (Index Count Changed,
Permissive, Not Selected, Utilities, the BCC description, the gear
icon for plugin install), the default Maximum Value of U for a new
data source item, the sysDescr object name, the PHP floor wording in
the requirements table, the Mactrack wildcard character and the
snmptrapd -On option. Repair cross-references, example values that
disagree with their commands, two table captions, a split list and
several sentences with missing words.

Statements the source does not settle are left as written.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-24 00:58:06 -08:00

5.3 KiB

Data Collectors

Data Collector Background

Cacti can support from one to many Data Collectors. There are two types of Data Collectors. They are:

  • Main Data Collector - This is essentially your core Cacti server and database. The Main Data Collector is also referred to as the Primary Server.
  • Remote Data Collector - These Data Collectors are located in distant locations, or where reaching devices is blocked due to firewall or security policies. The Remote Data Collectors are also referred to as Remote Pollers.

Due to the design of the Cacti Remote Data Collector, someone at the remote site can actually login to that Data Collector and interact with it as if their Data Collector was the Main Data Collector. Additionally, if for some reason the Main Data Collector becomes unavailable due to a WAN outage for example, the data for the Devices it manages will be cached locally until such time as the Main Data Collector is reachable again.

Once the Main Data Collector becomes reachable, recovery can transfer cached results back to it. Recovery depends on the remote collector retaining its local data and on a working connection to the primary database. Monitor outages, local capacity and recovery errors; buffering does not guarantee lossless collection through every failure.

Remote collection is not automatic failover of the primary server. A highly available primary deployment needs separately designed and tested database, RRD storage and scheduler coordination. Do not run multiple primary pollers against shared data on the assumption that installing cactid provides cross-server fencing.

Multiple Data Collectors use the built-in Boost module for buffered RRD updates. Cacti 1.2.31 enables Boost when multiple collectors are configured.

Remote collectors connect to the primary database, and the primary connects to each remote database for synchronization. Collector operations also use web requests to the configured collector hostnames. Configure reachable addresses, the actual database and web ports, and restricted firewall rules for these flows. Use HTTPS with a valid certificate and database TLS or a protected network connection. Device polling protocols require their own network access; there is no universal two-port firewall rule for a deployment.

Data Collector User Interface

The image below shows the current online collector (aka pollers). On this page, we can see the current, average, and max data collection times, the Data Collector processes and threads used, the number of Devices as well as what those Devices are polling. The Actions drop-down allows you to Enable, Disable, and Delete Remote Data Collectors. There is also a Full Sync option there. The Full Sync option will replicate key Cacti tables to the selected Remote Data Collectors for things like authentication, global settings, etc.

In the current Cacti design, you should not have to perform a Full Sync very often. It would mainly be used to push the user database and global settings to the remotes, after an outage if there were database changes during that outage.

Data Collectors

The Main Data Collector resides on the central Cacti server. It also serves as the master Data Collector performing key maintenance operations for the entire system.

In the edit page below, you can see what options are available when editing the Main Data Collector. It is important that the hostname used is resolvable by the Remote Data Collectors.

Data Collectors Edit Main

When editing the Remote Data Collector in the images below, you can see that it shares many of the settings of the Main Data Collector with the addition of a TimeZone setting and MySQL/MariaDB credentials and a Test Connection button. These saved credentials are used for ongoing synchronization from the primary to the remote database as well as for the connection test.

Data Collectors Edit Remote

Data Collectors Edit Remote Connection Test

Set up remote collector connections

Follow Remote Poller Setup for database accounts, connection directions, Cacti and Spine configuration, and the installer-assigned poller ID. Keep each collector's local database credentials separate from its connection to the primary and the primary's reverse synchronization credentials. Use matching account names and unique secrets; do not copy a commented configuration block as an active setup.

Install the same Cacti version on the remote server, selecting the New Remote Poller install option as shown below.

Remote Data Collector Setup

Source: Cacti 1.2.31 remote database synchronization, recovery processing and poller startup.


Copyright (c) 2004-2026 The Cacti Group