Files
Cactidocumentation/Viewing-Graphs.md
T
Thomas Vincent 361e85d172 docs: [1.2.x] document features the manual did not cover (#277)
* docs: [1.2.x] document features the manual did not cover

Add pages for the user profile settings and for the SNMP Agent and
its notification receivers, and link them from the front page. Add
sections on realtime graphs and CSV export to Viewing-Graphs, on the
data source statistics collection process to Settings-Data, and on
upgrading from 0.8.x to Upgrading-Cacti. Extend the RRDfile Cleaner,
RRDfile Checker and user log descriptions in System-Utilities,
document cli/add_datasource.php, and replace the Users, Groups and
Domains stub with an overview.

Labels, defaults, menu paths and options are taken from the Cacti
1.2.x source at 1523aa04b.

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

* docs: [1.2.x] add a manual page for every supported plugin (#282)

* docs: [1.2.x] add a manual page for every supported plugin

Add pages for Thold, Monitor, Maintenance, Intropage, Host MIB, APC UPS,
Evidence, FlowView, MikroTik, ReportIt, Router Configs, Service Check,
Slowlog, Weathermap and WMI, each with the same sections: requirements,
installation, permissions, settings, use, background processing,
command-line tools and troubleshooting. Bring the Syslog and MacTrack
pages to the same structure and add screenshots to MacTrack.

Each page documents the plugin's latest published release for Cacti
1.2.x and states that version; WMI has no release and follows its
development branch. Link the pages from the front page and the plugin
catalog, and correct the catalog's APC UPS and Router Configs
descriptions to match those releases.

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

* docs: [1.2.x] update front-page developer credits and GitHub profile links

Align the Active Developers, Contributors, Emeritus Members and In Memoriam entries in README.md with Cacti 1.2.x about.php (Cacti/cacti 3c4b7fde0): move Sean Mancini to Active Developers, Thomas Urban to Contributors, and Chris Bell and Jing Chen to Emeritus Members. Link each named developer and contributor to their verified GitHub profile.

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

---------

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

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-26 02:48:29 -08:00

8.7 KiB

Viewing Graphs

Background

When Cacti was first invented in 2001 by Ian Berry, his vision was to make it the fastest and easiest way to view and render Network Monitoring Graphs for people in the Network, Site, and Data Center Operations Space. As such, its focus from the very beginning was on rendering just one thing, Graphs. So, as such, the second Top Tab on a Cacti system is the Graphs tab.

The Graphs Top Tab

The Graphs Top Tab has a few personalities. They include:

  • Tree View

    Allows Cacti Users to view Graphs in the form of hierarchical Trees. These Trees are generally constructed by the Cacti Administrator and are controlled either at the User or User Group level.

  • Preview View

    The Preview View provides a view of all Graphs that a Cacti User has access to. Table Filters are provided to constrain the list of Graphs returned to the page.

  • List View

    The List View allows the Cacti user to Create their own Preview Page by allowing them to select graphs from various pages, and then finally view those pages from the Preview View.

The way these various personalities appear in Cacti is somewhat different depending on your Theme. Review the two images below, for how you navigate to the various Graph View modes.

In this first image, we see the way the Graph View options are displayed to the end user. This is the layout of the Classic, Modern and Dark themes.

Graph View Classic

In this second image, you can see the way the Graph View page will appear for users of the Paw, Paper-Plane, and Sunrise themes.

Graph View Alternate

Graph Manipulation and Options

Once you can view the Graphs, there will be a Filter Panel that will provide you multiple options to limit your view of them. Below, you can see an image of that Filter Panel.

Graph View Filter Sub-Panel

From this sub-panel, you can do the following:

  • Search by regular expression
  • Select one to many, or all Graph Templates to view
  • Specify the number of Graphs per Page
  • Specify the number of columns to Display
  • View either Legendless Thumbnails or full Graphs with their legends
  • Set various Preset Time-spans, or select a Time Range
  • Shift the Time either forward or backward by the Shift Time-span

Once you have the Filter where you like it from a Columns, Thumbnails, and Graphs per Page setting, you can press the Save button, if you have the correct permissions and save those defaults for your next login.

Depending again on permissions, to the right of the Graphs, you will find a number of action icons that allow you to operate on the Graphs.

The image below shows what that might look like if you have the Thold and QuickTree Plugins installed.

Graph View Action Icons

From top to bottom, the Graph Action Icons do the following.

Name Description
Details Allow you to perform precision zooming, view RRDtool debug information and perform CSV exports of your Graph Data.
CSV Export Allows you to directly CSV Export your Graph Data
Realtime View Allows you to view your Graphs at down to a 1 second granularity either in place, or in a pop-up Window
Kill Spikes Allow you to clear up Spikes and Gaps in your Graph
Create Threshold Create a Threshold for the Graph
Add to QuickTree Allow you to select Graphs to add to Trees by simply tooling around the Graphs page.

Graph Zooming

Cacti also has a powerful Graph Zoom interface built in. You can discover what it allows you to do by simply right clicking in the Graph area. When zooming, you will zoom all the Graphs on a page. It's quite powerful.

Graph Zoom Context Menu

There are many options for the Zoom menu. Instead of explaining them here, try them out for yourself.

CSV Export

The CSV export downloads the data behind a Graph as a comma separated file, so that you can work with the numbers outside of Cacti. It requires the View Graphs permission.

There are three ways to reach it:

  • The CSV Export action icon next to a Graph on the Graphs tab downloads the data for the time range that is currently set in the filter.
  • The Time View action icon opens a page that shows the Graph once per timespan. Each of them has its own CSV Export icon.
  • The Details action icon opens a page with a Graph Data icon. It shows the same data as a sortable table, with a Summary Details block and a Download link that downloads the CSV file.

The file is named after the title of the Graph with the extension .csv. It starts with a block of summary rows:

Table 1. Summary rows of the CSV export
Row Content
Title The title of the Graph
Vertical Label The vertical label of the Graph
Start Date and End Date The time range of the exported data
Step The number of seconds between two rows
Total Rows The number of data rows in the file
Expected Rows and Missing Rows The number of rows that the time range and step call for, and how many of them are absent
Graph ID and Host ID The ids of the Graph and its Device
Nth Percentile and Summation One row per Nth Percentile or Summation value used by the Graph, with its value and format. These rows are only present when the Graph uses such values.

After an empty row follows a header row with Date and one column per exported Graph item, named after its legend, and then one row per step with the date in the format YYYY-MM-DD HH:MM:SS and the values.

Text values that begin with =, +, - or @ are written with a leading single quote, so that a spreadsheet program does not treat them as formulas. Numbers are written unchanged.

Realtime Graphs

A Realtime Graph shows a single Graph at a much shorter interval than the normal polling interval, down to one second, without changing the stored data of the Graph.

The Realtime action icon is shown next to a Graph when Enable Real-time Graphing is checked in Console > Configuration > Settings > Visual, see Visual Settings, and the User holds the Realtime Graphs permission. The Realtime View Mode setting of the User Profile decides how it opens:

  • Inline, the default, replaces the Graph on the page with its Realtime version. Selecting the icon again, or the Stop button in the filter, returns to the normal Graph.
  • New Window opens the Realtime Graph in a separate browser window.

The following options control the display. Cacti remembers your last choices.

Table 2. Realtime Graph options
Option Description
Window, in a new window Presets The timespan shown on the Graph, from 30 Seconds to 1 Hour. The system default is the Graph Timespan setting, which defaults to 1 Minute.
Interval, in a new window Refresh Interval How often the Graph is updated, from 1 Seconds to 2 Minutes. In a new window, only intervals that are not shorter than the Minimum Refresh Interval setting are offered. That setting defaults to 10 Seconds.
Size The size of the Graph from 40% to 100% of its normal size. The default is 50%.
Thumbnails In a new window, draws the Graph without its legend.

Each time a Realtime Graph is refreshed, the web server runs poller_realtime.php for that Graph. It calls cmd_realtime.php, which polls only the Data Sources used by the Graph. The results are written to separate RRDfiles in the Realtime Cache Directory, one set per login session, and the Graph image is created from those files. The regular RRDfiles are not touched. The default Cache Directory is cache/realtime/ below the Cacti base directory.

Keep the following in mind:

  • The Cache Directory must exist and must be writable by the web server. Otherwise the Realtime window shows a message that the Image Cache Directory does not exist or is not writable.
  • The Realtime RRDfiles are created with the Minimum Refresh Interval as their step. If a Device caches its data and does not provide realtime updates, you may have to increase the Minimum Refresh Interval to prevent Graphs with gaps.
  • Every refresh runs an additional poll of the Data Sources of that Graph, independent of the normal poller.
  • Cacti's maintenance process removes Realtime image and RRDfiles that have not changed for two hours.

Copyright (c) 2004-2026 The Cacti Group