Files
Cactidocumentation/Device-Rules.md
T
Thomas Vincent a8c677137c docs: correct Cacti 1.2 monitoring and template workflows (#238)
* docs: clarify device templates and imports in Cacti 1.2

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

* docs: align monitoring guides with released Cacti 1.2.31

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

* docs: correct SNMP setup and scalar OID examples

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

* docs: preserve history when changing collection profiles

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

* docs: correct maintenance template workflows and examples

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

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-26 17:00:34 -04:00

2.1 KiB

Automation Device Rules

This section will describe Device Rules in Cacti.

Cacti Automation relies on create 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

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 see 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

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; 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 separately to select graphs from the available query rows.


Copyright (c) 2004-2026 The Cacti Group