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

7.3 KiB

Device Management

This section will describe Device management in Cacti.

Adding a Device to Cacti can be done in a few different ways, either via the Web GUI, Cacti's Automation, or the Command Line Interface (CLI).

Web GUI Option

To add a device via the Web GUI first click on Console > Management > Devices and you will see the below device console window which will show existing devices if any

Device Console

You will now select the + on the top right hand corner

Add Device Button

Once you select the + otherwise known as the add device button you will see the below screen which will ask you for device specific information

Some of the most important information about the device will be required in this window which includes

  • Description - The name that will appear on Graphs by default
  • Hostname - The DNS or IP address of the actual Device. Insert an IPv6 address into brackets (example: [2001:abcd:1234::1])
  • Poller Association - Defines which Data Collector is responsible for pulling information about the Device
  • Device Template - Cisco, Net-SNMP, Linux, etc - The Cacti object that holds all the Graph Templates and Data Queries to be graphed
  • Device Site Association, Location - Very important for performing Meta queries, or for Site level Graph organization on Cacti Graph Trees
  • Availability/Reachability - Settings that describe Device timeouts and availability methods.
  • SNMP information - SNMP Credentials for connecting to the Device
  • Notes - Arbitrary unstructured information about the Device

Add Device Info Screen

Cacti requires this basic information to be able to monitor the device and once entered, click save on the bottom right corner. With the device created you will need to add graphs for the device by clicking Create Graphs for this Device on the top right hand corner.

Choose a device template for the device's exposed measurements. The template overview explains bundled examples and import choices. If no dedicated template is available, generic SNMP interface monitoring may still work. Vendor and template names do not guarantee support for every model, firmware version or metric. Check the device's SNMP agent and permitted view, then inspect its returned query rows before selecting graphs. For script-based templates, also check the script's dependencies and access requirements.

Availability/Reachability Settings

Cacti prefers to use the Simple Network Management Protocol (SNMP) to communicate with Devices. Therefore, when creating a Device, you need to provide SNMP credentials to obtain information about the Device in order to collect data from it. Before Cacti will query the Device for data, it first verifies that the Device is up and responding. When doing so, you have several options. They include:

  • None - Always assume the device is up. This is generally reserved for Device objects that do not have a state.
  • SNMP Uptime - Query the SNMP Uptime Instance OID
  • Ping and SNMP Uptime - Ping the device but also check the SNMP Uptime Instance OID
  • Ping - Either ICMP, TCP at a port, or UDP as a port. Newer versions have an additional method, TCP Ping Closed. The device is considered UP even if the TCP ping returns closed
  • Ping or SNMP Uptime - Only one needs to be working for Cacti to collect data
  • SNMP Desc - Query the SNMP sysDescr in cases where the SNMP Uptime OID is not available
  • SNMP getNext - Query the first available OID in the OID tree for the Device. Used for certain devices that have limited SNMP support.

SNMP Credentials

When providing the SNMP credentials, Cacti currently supports the following versions:

  • Version 1 - Rarely used any more. Reserved for very old hardware
  • Version 2 - SNMPv2c supports 64-bit counters when the device's agent exposes them.
  • Version 3 - Fully supported, including advanced settings such as SHA224+ or AES192+ with SNMPv3. Cacti automatically leverages the Net-SNMP binaries where needed, so there is no need to uninstall the php-snmp module.

When providing the SNMP Credentials, Cacti will warn you if you have provided incomplete information depending on the SNMP Version and SNMP Security Level you have specified.

Additional Important Options

There are some additional options that you should note before starting to use Cacti. They include the following:

  • Number of Collection Threads - If your device is far away, and can tolerate multiple threads querying information, you can increase this number to reduce the time it takes to collect all information.
  • Maximum OIDs Per Get Request - Otherwise known as MaxOIDs, this SNMP option will allow the SNMP client to gather more metrics per get request. Please keep in mind that the higher you make this number, the longer an SNMP response may take. So, you have to be sensitive about the SNMP timeout as the number gets larger. Since, by default, SNMP is generally collected over UDP, you will also be limited in the number of responses depending on how many routers or VPNs you traverse to reach a device. When traversing VPN connections, many VPNs limit the MTU to around 500 bytes, which will significantly limit how large the Max OIDs can be. In some cases, it may be better to deploy a Remote Data Collector when your device is either far away from a latency perspective, or that you must traverse VPNs to communicate with.
  • External ID - This field is normally used for Asset Tracking information for the Device, but its use is entirely up to the System Administrator.

Plugin Behavior

Many Cacti Plugins can and do add additional columns to the Device table in Cacti. Depending on the Plugin you have installed, you will find other information that you can provide about the device including things like:

  • Notification Settings - Who to notify when the Device changes state
  • Criticality - How important is the device
  • Failure and Recovery Counts - How long till a device is treated as truly down.
  • Ping Thresholds - What RTL is considered bad when reaching a device

Creating devices via CLI script

You can also create a device by using the CLI script located at /cactidir/cli/

usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable]
    [--poller=[id]] [--site=[id] [--external-id=[S]] [--proxy] [--threads=[1]
    [--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_timeout=[N] --ping_retries=[2]
    [--version=[0|1|2|3]] [--community=] [--port=161] [--timeout=500]
    [--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=] [--engineid=]
    [--quiet]

Required:
    --description  the name that will be displayed by Cacti in the graphs
    --ip           self explanatory (can also be a FQDN)

To add a device using the bare minimum information would look something like this

$ php add_device.php --description=test --ip=192.168.1.15
Adding test (192.168.1.15) as "Cacti Stats" using SNMP v3 with community "public"
Success - new device-id: (45)

Copyright (c) 2004-2026 The Cacti Group