Files
Cactidocumentation/Graph-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

65 lines
2.7 KiB
Markdown

# Automation Graph Rules
This section will describe **Graph Rules** in Cacti.
Graph rules are used by the Cacti automation process after a device has been
identified and a template has been applied, the next step is graph creation.
Graph rules are processed from top to bottom.
These rules select indexed data-query graphs. Associated non-indexed graph
templates have a separate automatic creation path controlled by **Enable
Automatic Graph Creation**; they do not require a graph rule.
Device identification and graph selection are separate steps. A vendor or
[device template](Device-Templates.md) match does not prove that the device
exposes every measurement in that template. Confirm SNMP access and the
returned data-query rows before enabling a rule across a fleet. For queries
with optional tables or components, select only the rows and graph types
supported by the target devices.
The graph rule matches the graph template by looking at the data fields
chosen that are available in the data query. In the example below we are
creating graphs for interface traffic. The data query has several fields
available to match on.
You can see how these rules would take place by clicking the show matching
objects link.
Use both **Show Matching Devices** and **Show Matching Objects** to review
the scope. These previews show rule matches, not proof that each selected
metric will poll successfully. Check the resulting graphs on representative
devices as well.
![Automation Graph Rules](images/automation-graph-rules.png)
A practical example: if you want to create graphs for interfaces that are in
up/up status you would choose the ifOperstatus field and match the status to
UP. This would tell automation to create the graph for that interface only if
the data query discovers the operational status is equal to up.
A device selection Criteria is also important. Cacti needs a way to find which
device it needs to match. In the below example we are matching any device
that has an interface that is up and is not a Windows server.
You can preview which devices this will apply to by clicking the Show matching
devices link.
![Automation Graph Rules Edit](images/automation-graph-rules-edit1.png)
![Automation Graph Rules Device Criteria](images/automation-graph-rules-edit2.png)
![Automation Graph Rules Graph Criteria](images/automation-graph-rules-edit3.png)
This output shows us which devices match our device rules. This can help with
tweaking rules as needed.
![Automation Graph Rules Matching Devices](images/automation-graph-rules-edit4.png)
This output shows which interfaces, drives, sensors, etc. will be graphed based
on the graph rules.
![Automation Graph Rules Matching Objects](images/automation-graph-rules-edit5.png)
---
Copyright (c) 2004-2026 The Cacti Group