docs: add six operating guides to the 1.2.x manual (#319)

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This commit is contained in:
Thomas Vincent authored and GitHub committed 2026-12-03 00:15:33 -08:00
1 parent fb915d1e44
commit dd3da1e07e
10 files changed
+505

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
# Diagnose an empty or stale graph
Start with the first missing interval. Record the graph and data source
IDs, device, expected interval, assigned collector and time zone. Compare
another graph on the same device, one on the same collector and one on a
different collector. This narrows the investigation before anyone changes
polling settings.
| Pattern | First comparison | Where to look next |
| --- | --- | --- |
| One interface graph is stale | Is another interface on the same router current? | Interface identity, SNMP view, poller cache item and the individual RRD. |
| Every graph at one site is stale | Is the local collector completing polls, and is another site current? | Local scheduler, site management network, remote database and synchronization path. |
| Graphs at every site are stale | Do the latest local RRD values advance anywhere? | Shared scheduler, central storage or database, time synchronization and graph rendering. |
## Trace one interface
1. Open the device's interface query. Match the expected interface by
name, alias and circuit inventory. A replacement device can reuse an
interface index. Check what object the graph now represents before
running a reindex or creating replacement graphs.
2. From the assigned collector, read the selected counter twice using
the configured SNMP version and read-only monitoring account. Record
timestamps and device uptime. An increasing counter on a busy port
confirms that the agent is returning data. A constant counter can be
valid on an idle port. A reset invalidates that comparison interval.
3. In the [poller cache](System-Utilities.md), find the device and data
source. Check its collector, query index, OID or script, and RRD data
source name. Compare the normal poller's log for that device and time
with the two manual readings. A successful query from a laptop does
not establish that the assigned collector can reach the device.
4. Read the actual RRD path shown by the data source. Run the following
as an account that can read it. Choose a window covering several polls
and a consolidation function present in `rrdtool info`.
```sh
rrdtool info "$RRD_FILE"
rrdtool lastupdate "$RRD_FILE"
rrdtool fetch "$RRD_FILE" AVERAGE --start end-1h --end now
```
A changing last-update time alone does not prove that the selected series
contains finite values. In the fetched rows, distinguish zero from
`NaN` (unknown), and inspect completed intervals. Check heartbeat and
collection frequency if updates arrive late. When using Boost or an RRD
cache, check buffered writes before concluding that collection stopped.
## Resolve the three cases
- **One graph.** If SNMP succeeds but the cache points at the retired
interface, correct the association using the device query workflow.
Preserve the old graph's identity and history. If the RRD contains
recent finite values, check the graph item's source, units, time range
and view permissions.
- **One site.** Compare the collector's last completed cycle with the
time of its last contact at the main server. A fresh local poll and
stale central data direct attention to synchronization or buffered
updates. A stale local poll directs attention to the site scheduler or
its device path. Follow [Remote Poller Setup](How-To-Setup-Remote-Pollers.md)
to check database connections in both directions.
- **Every site.** If independent local data is current, inspect the
common graph server, RRD path, cache and database. If polling stopped
everywhere, confirm the expected scheduler is running and inspect its
last completed cycles. Check disk space and service-account write
access before changing templates.
Close the incident after two expected intervals show the right series
advancing on the graph and in the RRD. Record the first missing and first
recovered sample. A gap in the historical data can remain after recovery.
See [Data Debugging](Data-Debug.md) for the tools provided by Cacti.
See the [RRDtool fetch reference][fetch] for time alignment and available
archive resolutions.
[fetch]: <https://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html>
---
Copyright (c) 2004-2026 The Cacti Group
+5
View File
@@ -71,6 +71,11 @@ independent incident-reporting route available during the change. Hand
over a list of scoped checks, the latest successful samples and any
unresolved failures to the next shift.
## Operating procedures
- [Hand over a clinic WAN incident](Hospital-WAN-Handover.md)
- [Test the alert path end to end](Test-Alert-Delivery.md)
## Plugin setup references
- [Service Checker setup][servcheck-setup]
+62
View File
@@ -0,0 +1,62 @@
# Hand over a clinic WAN incident
A healthy application check at the campus can coexist with a clinic WAN
failure. Use a campus and a clinic [Service Checker](Plugin-Servcheck.md)
test against the same synthetic endpoint, a collector heartbeat and a WAN
interface graph. The [hospital deployment guide](Hospital-Deployment.md)
explains how to set up these signals. Use the IT incident channel and the
site's established clinical escalation route for reported care impact.
## Record what each signal actually measures
| Signal | Question for the outgoing shift |
| --- | --- |
| Campus HTTPS check | When did the campus collector last receive the expected body from the shared health endpoint? |
| Clinic HTTPS check | Is there a *fresh failure* from the clinic, or has the main server stopped receiving results? |
| Clinic collector | When did it last contact the main server? Can the local operator see a more recent completed poll? |
| WAN interface | Which end measures it? Is the latest point finite, zero, or missing? Does that end remain reachable from the observer? |
| Site report | Which service and site did the IT contact independently verify? Who owns the next update? |
Use one time zone and identify the observer for each timestamp. Preserve
the last good sample. A flat line caused by old data does not establish
that the circuit is idle. Keep patient identifiers, clinical payloads and
real credentials out of screenshots, check bodies and shift notes.
## Work through a synthetic incident
Assume a five-minute interval, all times in UTC. The endpoint returns
only the word `ready`. Campus and clinic have separate collectors.
| Time | Observation | Operator action |
| --- | --- | --- |
| 14:00 | Both checks return `ready`. The clinic WAN graph has a finite point. | Record the common last-known-good time. |
| 14:05 | The campus check succeeds. The main server has no new clinic result or heartbeat. | Mark clinic visibility stale. Ask the site contact to read the local collector log. |
| 14:10 | The site contact sees a completed local poll at 14:09. The campus-side router reports its clinic link down. | Assign the WAN investigation to network operations. Give the application owner the fresh campus result and its limited scope. |
| 14:25 | The campus-side router reports the link up and the main server receives a new clinic heartbeat. | Keep the case open while checking end-to-end service and sample freshness. |
| 14:30 and 14:35 | Both synthetic checks return `ready` again. New WAN graph points appear. | Ask the clinic IT contact to confirm service from its network and document the monitoring gap. |
If the heartbeat had stayed current and only the clinic HTTPS check had
failed, start with that collector's DNS, route and certificate trust.
If both fresh checks had failed, involve the shared service owner. These
observations guide escalation. A successful health response covers only
the endpoint and path exercised.
## Give the incoming shift a usable record
> **Synthetic handover, 14:15 UTC.** Clinic West cannot reach the shared
> test endpoint from the site according to its IT contact. Campus HTTPS
> passed at 14:10. The main server's last clinic result is 14:00. A local
> poll completed at 14:09. The campus router reports the clinic link down.
> Network operations owns ticket WAN-42. Clinic IT is the site contact.
> Next update is due at 14:25. On restoration, check two clinic results,
> two WAN graph points and confirmation from clinic IT.
Add the last recovery time and the receivers of the recovery notification.
Record any gap remaining in the graphs, the owner of follow-up work, and
the name of the person who accepted the handover. The incoming operator
should be able to open the referenced checks and graphs using their own
account.
---
Copyright (c) 2004-2026 The Cacti Group
+92
View File
@@ -0,0 +1,92 @@
# Accept an ISP circuit and produce its first monthly report
Start with the [ISP deployment guide](ISP-Deployment.md) to collect the
interface counters. Before accepting a circuit, agree with the customer
on its identifier, endpoints, committed rate, measurement direction,
sampling interval, reporting time zone and treatment of missing data.
Record the physical port speed separately from the service commitment.
## Match the handoff to the graph
1. Record the router, interface name and alias, interface index, collector,
graph ID and data source IDs. Define inbound and outbound from the
monitored router's perspective. A customer can use the opposite labels.
2. Read the 64-bit ingress and egress octet counters from the assigned
collector at two known times. Compare each change with the graph over
that interval. If the router or counters reset, repeat with a clean pair.
3. Use a known test transfer where permitted to check the direction.
Confirm that the graph title identifies the circuit and its units.
Sign in as a customer-scoped user and verify that only the intended
graph is available.
4. After a line-card change, router replacement or reindex, repeat the
match against the circuit inventory. Save the old and new identifiers,
data-source mapping and change time. Keep the earlier graph available
when a replacement produces a new series.
## Build the reporting series
Use equally spaced, completed rate samples for the agreed billing window,
for example five-minute average bits per second. For an RRD containing
octets per second, multiply by eight once. Record the archive resolution
actually returned by RRDtool. An older month retained only as hourly
averages cannot reproduce five-minute peaks. Check the
[data profile](Data-Profiles.md) before promising a reporting resolution.
Align the start and end to interval boundaries. State whether the end
timestamp denotes the interval just completed. Generate the complete
expected timestamp grid for the chosen month and time zone, then match
both directions to it. Flag missing records, unknowns, duplicate times
and counter resets. Keep zero traffic as a valid measurement. Record
coverage and the agreement's minimum coverage rule before computing a
reportable result.
## Verify a 95th percentile by hand
This exercise uses 21 five-minute slots, of which 20 have valid readings
in both directions. The example policy excludes the missing pair, ranks
each direction independently using nearest rank, and takes the larger
directional result. Use the method in the actual service agreement.
Run this small verification example with Python 3. Values are in Mb/s.
The list positions are consecutive five-minute slots in the same order.
```python
from math import ceil
inbound = list(range(10, 200, 10)) + [900, None]
outbound = [700] + list(range(95, 0, -5)) + [None]
pairs = [(i, o) for i, o in zip(inbound, outbound)
if i is not None and o is not None]
def nearest_rank_95(values):
ordered = sorted(values)
return ordered[ceil(0.95 * len(ordered)) - 1]
rx = nearest_rank_95(i for i, _ in pairs)
tx = nearest_rank_95(o for _, o in pairs)
print(len(pairs), len(inbound), rx, tx, max(rx, tx))
```
Expected output is `20 21 190 95 190`. Coverage is 20/21, or 95.24%.
The 19th of 20 sorted inbound readings is 190 Mb/s. The outbound result
is 95 Mb/s. The chosen result is 190 Mb/s, or 95% of a 200 Mb/s commitment.
If the contract requires 99% coverage, flag this example as incomplete.
Do not turn its missing slot into zero to pass a reporting threshold.
Taking the larger direction at each timestamp *before* ranking gives
700 Mb/s for the same data. The two peaks occurred in different slots.
Write the agreed order of operations on the report so another operator
can reproduce the calculation.
## Hand over the first report
Include the circuit ID, graph IDs, reporting window and time zone,
observed interval, expected and valid slots, exclusions, directional
results, chosen rule, commitment, and any equipment changes. Retain the
input export and calculation with the report. Have a second operator
recalculate the sample above and one circuit from the actual export before
releasing a customer report.
---
Copyright (c) 2004-2026 The Cacti Group
+5
View File
@@ -75,6 +75,11 @@ threshold, owner and escalation destination. After a router replacement
or interface reindex, compare the alias and observed traffic again before
using the new samples for capacity decisions.
## Operating procedures
- [Accept and report on an ISP circuit](ISP-Circuit-Acceptance.md)
- [Test the alert path end to end](Test-Alert-Delivery.md)
## Plugin setup references
- [Thold setup][thold-setup]
+7
View File
@@ -87,6 +87,13 @@ For each site, give the operator a known-good graph, the alert recipient,
the maintenance owner and the recovery procedure. Test restoration of the
database, RRD files and plugin configuration on an isolated instance.
## Operating procedures
- [Restore Cacti on a replacement server](Restore-Cacti.md)
- [Diagnose an empty or stale graph](Diagnose-Stale-Graphs.md)
- [Measure and size a collector](Size-a-Collector.md)
- [Test the alert path end to end](Test-Alert-Delivery.md)
## Plugin setup references
- [Thold setup][thold-setup]
+9
View File
@@ -150,6 +150,15 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
- [Telecommunications and Internet service providers](ISP-Deployment.md)
- [Hospital IT infrastructure](Hospital-Deployment.md)
### Operating Cacti
- [Restore Cacti on a replacement server](Restore-Cacti.md)
- [Diagnose an empty or stale graph](Diagnose-Stale-Graphs.md)
- [Measure and size a collector](Size-a-Collector.md)
- [Test the alert path end to end](Test-Alert-Delivery.md)
- [Accept and report on an ISP circuit](ISP-Circuit-Acceptance.md)
- [Hand over a clinic WAN incident](Hospital-WAN-Handover.md)
### Known Issues
[List of Known issues](Known-Issues.md)
+89
View File
@@ -0,0 +1,89 @@
# Restore Cacti on a replacement server
A restore is complete when an operator can open a graph from before the
backup, see a new sample from a test device, and access only the graphs
their account is allowed to see. Rehearse on an isolated replacement host.
Record the recovery point (newest recovered sample) and the time required
to return the service to operators.
## Prepare a recoverable backup
1. Record the Cacti, PHP, MariaDB/MySQL, RRDtool, collector and plugin
versions. Record the main and remote collector IDs, polling schedules,
database names and actual RRD paths. Select a known graph and write down
its device, data source, collection interval and a recent non-empty
time range. Capture an allowed and a restricted graph ID for a test user.
2. Inventory the database, RRDs, Cacti configuration, plugin code and
plugin-owned files, custom scripts, query XML, certificates, encryption
keys and scheduler configuration. Include remote databases, external
plugin databases and non-default storage paths where used. Protect
keys and database credentials with the backup's access controls.
3. Choose a coordinated recovery point. For a scheduled cold backup,
pause new polls, web writes and plugin jobs, let active jobs finish,
and flush pending Boost or RRD cache writes through the configured
service. Take the database and filesystem copies while writes remain
paused. Resume the original services and confirm a new poll completes.
For an online snapshot, document how the database and RRD recovery
points are coordinated and how much divergence is acceptable.
4. Check the backup manifest, file sizes and checksums. Retain the time
range you captured in step 1 as an independent verification target.
For example, on MariaDB the following creates a logical dump. Run it with
an account allowed to read the indicated objects, in a protected backup
directory. Supply credentials through the client's protected option file.
The consistent transaction covers transactional tables. Coordinate writers
to any nontransactional plugin tables when taking the copy.
```sh
umask 077
mariadb-dump --single-transaction --quick --routines --events --triggers \
--databases cacti > cacti.sql
```
Use the matching client utilities for your database distribution. Check
the command's exit status and restore the dump during the drill.
## Restore without contacting production
1. Isolate the replacement from production databases, devices, remote
collectors, mail relays and webhooks before loading data. Leave cron,
timers, pollers, plugin jobs and the database event scheduler stopped
or disabled. A restored database can contain live recipient settings.
2. Install matching versions. Restore the database into an empty instance.
For the example dump, run `mariadb < cacti.sql` on the replacement with
its local restore account. Recreate the application account and grants.
Confirm the configured database hostname resolves to the replacement.
3. Restore configuration and keys, RRD files, plugins and local resources
at their recorded paths. Restore service-account ownership and access.
If the target cannot read a binary RRD from the source platform, use
RRDtool's dump and restore on the respective platforms. Check one file
with `rrdtool info` before converting the full set.
4. Start the web and database services in isolation. Open the saved
historical graph window. Verify a known value or pattern and timestamp.
Check an enabled plugin page and its retained configuration.
5. Permit a lab device and a test notification sink only. Exercise the
poller on a lab data source for two scheduled intervals. Confirm its RRD
timestamp advances and its graph has a new finite value. Sign in as
the restricted user and test both saved graph URLs.
## Decide whether to cut over
Record historical coverage, fresh sample time, access results, any missing
plugin data and elapsed restore time. A stale graph or a credential that
cannot be decrypted is a failed check to investigate before cutover.
For a planned move, agree on a final synchronization window and which host
will own the schedule. Stop the old writers before enabling the new ones.
Keep the prior host and backup available for rollback, and account for
samples collected after the cutover if you revert.
See [Upgrading Cacti](Upgrading-Cacti.md) for version changes and
[diagnose a stale graph](Diagnose-Stale-Graphs.md) for missing samples.
The [MariaDB dump reference][dump] describes the backup switches.
[dump]:
<https://mariadb.com/docs/server/clients-and-utilities/backup-restore-and-import-clients/mariadb-dump>
---
Copyright (c) 2004-2026 The Cacti Group
+88
View File
@@ -0,0 +1,88 @@
# Measure and size a Cacti collector
Size against the work that must finish in one polling interval. A router
with thousands of indexed interfaces and a switch with a single uptime
graph each count as one device. Record both the device count and the
number and type of polling items. Start with one representative collector
and an agreed margin for slower responses and maintenance.
## Capture a baseline
| Measure | Where to obtain it | How to compare it |
| --- | --- | --- |
| Polling interval and completion time | Collector settings and the `SYSTEM STATS` line in the Cacti log | Record every cycle over a busy period, then compare the median, 95th percentile and longest run with the interval. |
| Work per cycle | `Hosts`, `DataSources`, `RRDsProcessed`, method, processes and threads in the stats line | Keep SNMP, external scripts, timeouts and fast profiles identifiable. Check the same collector each time. |
| Missed or late samples | Expected timestamps and finite values for a representative set of RRDs | Count completed slots at the native step. Record unknowns, late arrivals and missed scheduled runs separately. |
| Database and storage load | Database status counters, database host CPU and disk latency, queue depth if buffering is enabled | Sample the same counters at the beginning and end of each window. Also record other work sharing the database. |
For a five-minute schedule expect 12 completed slots in a fully elapsed
hour when the data source also has a five-minute step. Count the slots in
the same time zone with a consistent start/end convention. A log line
saying a poll completed does not prove every expected data source produced
a usable result. Use [stale graph diagnosis](Diagnose-Stale-Graphs.md) to
locate missing values.
On MariaDB, a DBA can read `SHOW GLOBAL STATUS LIKE 'Questions'` at both
ends of the observation window. The difference counts client statements
across the entire server, including the observation queries. A shared
database needs additional attribution. Pair this proxy for database work
with query latency and disk measurements before deciding it is saturated.
## Add one controlled batch
1. Choose a batch resembling the intended rollout. Record working and
timing-out targets, data-source mix, collection interval and timeout
settings. Keep poller method and concurrency fixed for this comparison.
2. Collect scheduled cycles before and after the addition at comparable
times. Include a busy period and any regular discovery or backup work.
For each cycle record which collector, elapsed seconds, processed
sources, and any warnings about overlap or late completion.
3. Compare the slowest runs and missing slots as well as the median. For
example, if a scheduled cycle takes 240 seconds at a 300-second
interval, the remaining margin for that cycle is 60 seconds. Set the
team's acceptable margin from observed variation and recovery needs.
4. If performance deteriorates, stop adding devices. Revert the pilot
batch or one tuning change at a time and repeat the measurements.
## Worked measurement on a disposable collector
This small run used the Cacti 1.2.32 maintenance code, MariaDB 10.11, the
PHP poller, one process and one thread. Each logical device polled one
local **Unix - Processes** script and updated one RRD. The configured
interval was 300 seconds. After one warm-up per batch, five manually
triggered cycles ran on an isolated container network.
| Enabled devices / sources | Median cycle | Observed range | Median database statements per cycle | RRDs processed per cycle |
| --- | --- | --- | --- | --- |
| 1 / 1 | 0.2103 s | 0.2091 to 0.2144 s | 700 | 1 |
| 8 / 8 | 0.2111 s | 0.2096 to 0.2130 s | 789 | 8 |
The seven additional sources increased the observed statement count by 89
per cycle. Cycle times overlapped. These manual runs measured local script
processing and database work. They did not measure WAN delay, scheduled
slot coverage, or production capacity. Repeat the scheduled baseline with
your own devices before extrapolating.
## Tune locally or add a remote collector
- If one device or script dominates the cycle, investigate its response
time, retries and query design first. More workers can multiply a load
the device is already struggling to serve.
- If independent targets are waiting and the database and storage have
spare capacity, test one [poller configuration](Settings-Poller.md)
change. Revert it if timeouts, queue depth or missing slots increase.
- If slow sites share a WAN path, test a [remote collector][remote] close
to the devices and compare the same workloads. Account for its database
connections, synchronization, and behavior during a WAN outage.
- If many collectors slow down together with database latency or an RRD
write backlog, investigate the shared service before adding another
writer.
Record the accepted batch size, worst observed cycle, missing samples,
database load and the condition that should trigger the next review.
[remote]: How-To-Setup-Remote-Pollers.md
---
Copyright (c) 2004-2026 The Cacti Group
+70
View File
@@ -0,0 +1,70 @@
# Test the alert path end to end
Use two disposable targets, a controllable data source and a dedicated test
mailbox. Keep a second, unrelated check as a control. Record the collector,
time zone, poll interval, trigger count and expected recipient. Configure
email delivery in Cacti and confirm the mailbox can receive a test message.
## Configure the threshold and service check
1. Install and enable [Thold](Plugin-Thold.md) in `plugins/thold` and
[Service Checker](Plugin-Servcheck.md) in `plugins/servcheck`. Grant
management realms to the drill owner. Give the observing operator the
view permissions needed to find events and graphs.
2. In **Management > Notification Lists**, create a list for the test
mailbox. In **Management > Thresholds**, create a high threshold on a
test gauge that normally reads 10. For this exercise use a high limit
of 20 and a trigger of two consecutive breaches. Enable the threshold,
assign the test recipient and enable recovery notification in the
applicable threshold or template settings.
3. Under **Management > Service Checker > Tests**, add an HTTPS check
against the first test endpoint. Select the collector, verify its CA
chain, and configure a response search string such as `ready`. Set
**How Often to Test** to every poll, **Trigger** to two failed tests,
and enable email to the test recipient. Repeat for the unrelated
control endpoint with a distinct name.
4. Confirm two healthy polls or checks, recent timestamps and an empty
alert state. Check that global notification suppression is off and
that the test mailbox is the effective recipient for each rule.
## Prove failure and recovery
| Action on the test system | Evidence to keep |
| --- | --- |
| Raise the gauge to 30 for two completed polls. | Two observed values over the limit, one transition into alarm, and a threshold message in the test mailbox. |
| Return the gauge to 10. | A fresh normal value, the recorded restoral and its received message after the configured recovery criteria. |
| Make the first endpoint return a response without the success string. | Two failed checks from the chosen collector, an alert transition and a service message naming the correct target. |
| Restore the expected response. | A successful check, the recovery event and the received recovery message. |
Record both the event time and the receipt time. The email test button
exercises mail transport. The transitions above also exercise collection,
rule evaluation, destination selection and delivery. If an event exists
without a message, check recipient inheritance, notification suppression,
the queue or mail log, and the receiving mailbox.
## Verify a maintenance window is scoped correctly
Install [Maintenance](Plugin-Maint.md) in `plugins/maint`. Under
**Management > Maintenance Schedules**, create a short one-time window
and record its start, end and displayed time zone. Save it, open its
**Servcheck** tab and associate only the first endpoint. Start this phase
with both endpoints healthy. Keep the control check outside the window.
1. While the window is active, make both endpoints return an unhealthy
response. Servcheck skips the associated test during active maintenance.
The control should still be tested and send a failure notification.
2. Restore the control and verify its recovery. Keep the scoped endpoint
unhealthy through the end of the window. Confirm its checks resume,
it reaches the failure trigger, and a fresh notification arrives.
3. Restore the scoped endpoint and verify its final recovery. End or
remove the drill schedule, return targets to normal, and confirm that
no active maintenance association or test recipient remains on a
production rule.
Keep the event history and mailbox evidence together. An acknowledged
event or a quiet mailbox alone cannot establish that suppression was
limited to the intended target.
---
Copyright (c) 2004-2026 The Cacti Group