Files
Cactidocumentation/Settings-Spikes.md
T
Thomas Vincent c4be40ab53 docs(settings): [1.2.x] correct settings, authentication and user management pages against the source (#265)
* docs(settings): [1.2.x] correct settings pages against the source

Align setting names, options, defaults and descriptions on the General, Paths, Device Defaults, Poller, Data, Visual, Performance, Spikes and Mail/Reporting/DNS pages with include/global_settings.php on 1.2.x.

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

* docs(auth): [1.2.x] correct authentication settings pages against the source

Align option labels and the Basic Auth mapfile behavior with include/global_settings.php and lib/auth.php on 1.2.x.

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

* docs(users): [1.2.x] correct user, log, utilities and navigation pages against the source

Align menu paths, form labels, permission models, log filters and utilities entries with the 1.2.x source.

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

* docs(settings): [1.2.x] correct the authentication class count on the Settings page

include/global_arrays.php defines four authentication methods.

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

* docs(settings): [1.2.x] fix the PNG and SVG expansions on the General page

The page expanded PNG as Petri Net Graphs and SVG as Scalable Vector Graphs. The source only has the labels PNG and SVG.

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

* docs(settings): [1.2.x] document settings missing from the pages

Add entries from include/global_settings.php, links.php and utilities.php on 1.2.x.

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

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-23 15:12:12 -05:00

89 lines
3.8 KiB
Markdown

# Spike Kill
Certain types of RRDtool based **Data Sources** can from time to time generate
what are look like to the casual observer spikes. These spikes can make your
Cacti **Graphs** unreadable.
Spike happen when you either have set no maximum value on your Cacti **Data
Template** by using a 'U' as the Maximum Value, or when certain `COUNTER` based
RRDfiles have their counter data overflow, and start counting again from zero.
When this happens recent versions of RRDtool, like version 1.7, handle these
overflows quite well, but for some older RRDtool versions, these changes can
result in these spikes.
There are also cases where for some reason the Cacti system goes offline, and
therefore your Cacti Graphs will develop what are referred to as gaps.
## Spike Kill Settings
Cacti provides two gap filling options from the user interface. In the image
below, you can see the default Settings for Cacti's Spike Killer GUI.
![Settings Spike Kill](images/settings-spikekill.png)
Those settings include:
- **Removal Method** - Cacti supports both Variance (labeled `Variance Based
w/Outliers Removed`) and Standard Deviation methods. When calculating those
values, you have the ability to filter out outliers such that they don't
negatively impact those calculations.
- **Replacement Method** - When filling the Gap, what data point should be used.
There is `Last Known Good`, which would be the last good known value,
`Average`, which uses the Average value for the RRDfile data source, and
`NaN's` which will cause the **Graph** to gap, but the spikes will be removed.
- **Number of Standard Deviations** - This is the number of
`Standard Deviations` above the Average that are required before the value is
considered a spike. It only applies to the `Standard Deviation` spike removal
method.
- **Variance Percentage** - When using the `Variance` spike detection method,
the percentage above variance before considering a value a spike.
- **Variance Number of Outliers** - The number of high values to ignore when
calculating the Variance.
- **Max Kills Per RRA** - The maximum number of spike to remove from any given
RRDfile Data Source.
- **RRDfile Backup Directory** - If you wish to backup RRDfiles that have been
altered by Spike Kill, they will be placed in this directory.
## Batch Spike Kill Settings
Cacti also allows administrators to kill Cacti spikes on a periodic basis using
a batch process. From this batch process, you select the time of day, the
**Graph Templates** to perform Spike Kill operations on, and the backup
retention for RRDfiles that have spikes removed from them. The image below shows
those settings.
![Settings Spike Kill Batch](images/settings-spikekill-batch.png)
Those settings include:
- **Removal Schedule** - Do you wish to periodically remove spikes from your
graphs? If so, select the frequency. The options are `Disabled`,
`Every 6 Hours`, `Every 12 Hours`, `Once a Day` and `Every Other Day`, and the
default is `Disabled`.
- **Base Time** - The Base Time for Spike removal to occur. For example, if you
use `12:00am` and you choose once per day, the batch removal would begin at
approximately midnight every day. The default is `12:00am`.
- **Graph Templates to Spike Kill** - When performing batch spike removal, only
the templates selected will be acted on.
- **Backup Retention** - When SpikeKill kills spikes in graphs, it makes a
backup of the RRDfile. How long should these backup files be retained? The
options are `Never` and a list of time spans, and the default is `3 Months`.
Of note is that first of all, the only **Graph Templates** that are shown are
**Graph Templates** that include `COUNTER` or `DERIVE` type **Data Sources**.
It is also worth noting that only **Data Query** type **Graph Templates** are
supported as of the current Cacti version.
---
Copyright (c) 2004-2026 The Cacti Group