mirror of
https://github.com/Cacti/documentation.git
synced 2026-12-06 15:13:53 +09:00
* 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>
48 lines
2.1 KiB
Markdown
48 lines
2.1 KiB
Markdown
# 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.
|
|
|
|

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

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