Files
Cactidocumentation/Device-Rules.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

48 lines
2.1 KiB
Markdown

# Automation Device Rules
This section will describe **Device Rules** in Cacti.
Cacti Automation relies on device Rules. These rules help the automation
process figure out what type of device is being scanned. Based on the device
rule REGEX the automation engine can apply the appropriate template to the
device i.e., if there is a REGEX for IOS, the automation engine may pick the
Cisco router template for the device.
![Automation Device Rules](images/automation-device-templates.png)
The matching fields are evaluated through the database's `REGEXP` and
substring matching in Cacti 1.2.31, not a Perl regular-expression engine.
You can match the system description (`sysDescr`), which commonly describes the
platform and software, or the system name (`sysName`), which is the agent's
configured name.
The criteria for returned, nonempty identification fields are combined with
`AND`. Filling in multiple match fields narrows a rule; the fields are not
alternative ways to match it.
For a Cisco IOS agent, inspect the returned `sysDescr` and enter a distinctive
substring such as `Cisco IOS` if it is present. Apply that match to the system
description, not the system name. Avoid assuming that every device from a
vendor returns the same description or supports the same measurements.
Using this info, automation would apply the appropriate device template you
choose. If you look below, we match for a system that matches Linux. Once a
device is found with the matching description it is assigned the Net-SNMP device
template.
![Automation Device Rules Edit](images/automation-device-templates-edit1.png)
If the System/Device you are matching has a unique OID you can also match based
on that.
Place specific product-family rules before broad vendor rules. A matching
description, name or system object ID selects a
[device template](Device-Templates.md); it does not probe every measurement
in that template or establish model compatibility. Verify the template's
queries against representative devices before enabling broad discovery.
Configure [graph rules](Graph-Rules.md) separately to select graphs from the
available query rows.
---
Copyright (c) 2004-2026 The Cacti Group