From fb915d1e44eccd48ee1067b95c7f561a8d060b6e Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Thu, 3 Dec 2026 00:15:32 -0800 Subject: [PATCH] docs: add operator deployment guides for Cacti 1.2.x (#314) Signed-off-by: Thomas Vincent --- Hospital-Deployment.md | 89 +++++++++++++++++++++++++++++++++ ISP-Deployment.md | 93 ++++++++++++++++++++++++++++++++++ Multi-Site-Deployment.md | 105 +++++++++++++++++++++++++++++++++++++++ README.md | 6 +++ 4 files changed, 293 insertions(+) create mode 100644 Hospital-Deployment.md create mode 100644 ISP-Deployment.md create mode 100644 Multi-Site-Deployment.md diff --git a/Hospital-Deployment.md b/Hospital-Deployment.md new file mode 100644 index 0000000..46c45f7 --- /dev/null +++ b/Hospital-Deployment.md @@ -0,0 +1,89 @@ +# Deploy Cacti for hospital IT infrastructure + +Start with an infrastructure service the IT team owns, such as a clinic +WAN link, a synthetic HTTPS health endpoint or an IT rack UPS. Agree with +network, application and facilities owners on the polling source, permitted +queries, frequency, and after-hours contact. This guide covers IT service +availability and capacity. Clinical alarms and patient monitoring remain +with the systems and teams responsible for them. + +## Establish a campus and clinic pilot + +Follow the [multi-site rollout](Multi-Site-Deployment.md) for the main +campus and one clinic. Poll approved management interfaces through the +designated management network. Add one campus uplink and one clinic WAN +interface, use site-based graph trees, and verify the selected ports with +the network team. Define how the service desk will distinguish a lost +collector from an individual failed device. + +Use inventory names, circuit IDs and synthetic test accounts in graphs. +Select endpoints that return a fixed health response. Keep patient names, +record numbers and clinical payloads out of URLs, test responses, logs, +screenshots and alert email. Review access as both a site operator and a +central administrator before publishing a dashboard. + +## Check access to a shared application from a clinic + +1. Install [Service Checker](Plugin-Servcheck.md) in `plugins/servcheck`. + Grant **Service Check Admin** to the team that manages tests. Ask the + application owner for an approved, non-patient HTTPS health endpoint + and a stable success string, for example `ready`. +2. Under **Console > Management > Service Checker > Tests**, add an HTTPS + check. Select the clinic collector, host and URL path. Set the response + search string, certificate verification, failure trigger and notification + list. For a private CA, add the approved CA chain and select it in the test. +3. Add a second check from the main campus with the same target. Give + each check a name that identifies its origin. Confirm both show the + expected response and a recent timestamp. If the clinic alone fails, + investigate its collector, DNS, route and trust chain first. +4. Use a test endpoint that the application team can switch between + healthy and unhealthy responses. Confirm the service desk gets a + failure from the right location and a recovery after restoration. + Record which application functions the health endpoint actually covers. + +## Monitor power for an IT communications room + +Install [APC UPS](Plugin-Apcupsd.md) in `plugins/apcupsd` for a supported +UPS or management service. For an SNMP UPS, create the Cacti device with +read-only credentials first. In the plugin's UPS management page, add a +UPS, select **SNMP Based**, the Cacti device, **Poller ID** and **Site +Name**. For an apcupsd or NUT endpoint, use the matching UPS type and +configure the monitored service address instead. + +After polling, compare the reported line state, load and battery runtime +with the UPS management display. Ask facilities which conditions should +produce a ticket. Verify alert delivery with an approved test device or a +test data source. Keep power connected to production equipment throughout +the monitoring rehearsal. + +## Coordinate a planned clinic network change + +Install [Maintenance](Plugin-Maint.md) in `plugins/maint`. Under +**Console > Management > Maintenance Schedules**, create a one-time +schedule with the agreed start and end. Open the saved schedule and use +its **Servcheck** or **Thold Devices** tab to associate the affected items. +Have a second operator verify the scope, time zone and expiry. + +Use a short rehearsal on a test service. Confirm the selected test follows +its maintenance behavior, an unrelated test can still alert, and the +selected test runs again after the window. Keep the site contact and the +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. + +## Plugin setup references + +- [Service Checker setup][servcheck-setup] +- [APC UPS setup][apcupsd-setup] +- [Maintenance setup][maint-setup] + +[servcheck-setup]: + +[apcupsd-setup]: + +[maint-setup]: + + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/ISP-Deployment.md b/ISP-Deployment.md new file mode 100644 index 0000000..fb4835b --- /dev/null +++ b/ISP-Deployment.md @@ -0,0 +1,93 @@ +# Deploy Cacti for a telecommunications or Internet service provider + +Use an initial point of presence (PoP) with one transit link, one customer +handoff and a known traffic source. This pilot answers three different +questions: how much traffic passed, what contributed to it, and which team +should investigate. Follow the [multi-site rollout](Multi-Site-Deployment.md) +for collector placement, permissions and plugin installation. + +## Measure transit and peering capacity + +1. Poll the edge router from the PoP management network. Apply the + appropriate device template and run the interface data query. Match the + interface alias to the circuit inventory before creating graphs. Record + the circuit ID, provider, committed rate, port speed and interface name. +2. Select 64-bit traffic counters on high-speed interfaces supporting + SNMPv2c or SNMPv3. Add separate error and discard graphs where available. + A physical port speed can exceed the contracted circuit rate. Use the + contract rate when deciding when to open a capacity ticket. +3. Compare a graph interval with the router's counters over the same + interval. For an octet counter, bits per second is the change in octets + times eight divided by elapsed seconds. Discard comparison intervals that + span a counter reset. Check inbound and outbound separately. +4. Install [Thold](Plugin-Thold.md) in `plugins/thold`. Under + **Management > Notification Lists**, create a NOC test list. Under + **Management > Thresholds**, add a high threshold for the chosen data + source. Check whether the source stores bytes per second or bits per + second before entering a value. Set the breach duration from the poll + interval and the team's tolerance for bursts. Test delivery and recovery + using a test source before applying the template to customer circuits. + +For a 1 Gb/s commitment, 80% is 800 Mb/s, or 100,000,000 bytes/s. These +are example thresholds for the same directional rate. Compare the units +in the actual source and graph before choosing either number. + +## Attribute a traffic surge + +Use [FlowView](Plugin-Flowview.md) when the router can export a supported +NetFlow or IPFIX format and the team needs to identify traffic contributors. + +1. Install `plugins/flowview`, configure its database using the supplied + example configuration, and choose retention for raw flow records before + enabling export. Restrict flow access to the authorized operations team. +2. Add a listener under **Console > FlowView > Listeners**. Choose its + receiving address and UDP port, configure the router exporter to match, + and permit that exporter through the management firewall. Install and + start the supplied capture service. Restart it after listener changes. +3. Generate a known transfer between two approved test endpoints. Check + the listener's last activity and find the exporter, time window and + endpoints in a report. If nothing arrives, verify the exporter + destination and listener first. If packets arrive without usable + records, check the export format and template delivery. +4. Compare the flow report with the interface graph for the same direction + and window. Sampling, export timing and protocol overhead affect totals. + Record the sampling configuration when handing a finding to engineering. + +## Show an inter-PoP link on a NOC map + +Install [Weathermap](Plugin-Weathermap.md) in `plugins/weathermap`. Check +PHP GD, RRDtool and write access to the map configuration and output +directories for their respective service accounts. Grant edit access to the +map maintainer and view access to the NOC. Add one node per PoP and a +link using the monitored interface's inbound and outbound RRD data +sources. Set the link bandwidth and label both ends. + +After a poller render, compare the arrow direction, utilization and +timestamp with the underlying graph. If the arrows are reversed, correct +the map's endpoint or data-source order before cloning links. Restrict a +customer-facing view to the agreed circuits and test it as that customer. + +## Commission additional handoffs + +For each new handoff, repeat the port-to-circuit match, graph check and +test-recipient alert. Keep a record of the expected graph, source units, +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. + +## Plugin setup references + +- [Thold setup][thold-setup] +- [FlowView setup][flowview-setup] +- [Weathermap setup][weathermap-setup] + +[thold-setup]: + +[flowview-setup]: + +[weathermap-setup]: + + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/Multi-Site-Deployment.md b/Multi-Site-Deployment.md new file mode 100644 index 0000000..48fd42e --- /dev/null +++ b/Multi-Site-Deployment.md @@ -0,0 +1,105 @@ +# Deploy Cacti across multiple sites + +Start with one site, one collector and one representative device. Expand +only after you can explain who owns a missing sample, where its graph is +stored and who receives an alert. Use this guide as the shared rollout +procedure for the [ISP](ISP-Deployment.md) and +[hospital](Hospital-Deployment.md) examples. + +## Choose where to poll + +| Site condition | Starting design | What to measure in the pilot | +| --- | --- | --- | +| Small branch reachable from headquarters | Use the main collector over the management network. | Poll duration and missing samples during a busy hour. | +| High-latency WAN or devices reachable only inside the site | Put a remote collector near those devices. | SNMP results from the collector and synchronization with the main server. | +| Several reachable sites with separate owners | Start with one collector and a Cacti Site per location. | Operator access to graphs and correct notification routing. | +| Site with an independent failure domain | Assign a local collector and arrange a second observation from outside the site. | Which system can report a WAN failure while the site is isolated. | + +A **Site** groups inventory. A **Data Collector** runs polling jobs. +A graph tree organizes what users see. Configure and test permissions +separately. Record the site, collector, device address, polling interval, +management network, owner, and on-call destination in the rollout list. + +## Bring up the first site + +1. Install the [main server](General-Installing-Instructions.md). Confirm + its scheduled poller finishes within the polling interval and produces + a populated local graph before adding a remote site. +2. Create a [Site](Sites.md). If it needs a collector, follow + [Remote Poller Setup](How-To-Setup-Remote-Pollers.md). Use matching + Cacti versions, a local database at the remote site, and the documented + connections in both directions between primary and remote databases. +3. Configure read-only SNMP access on one approved device. Verify that the + assigned collector can read the required objects. In [Devices](Devices.md) + select the site, collector and device template. Re-run the interface + query and select one known active port when creating graphs. +4. Compare the interface name, direction, units and latest graph time with + the device. Allow two successful samples for a counter-derived rate. + If the query is empty, check the SNMP view from the assigned collector. + If the graph stops updating, check the collector log and poll duration. +5. Place the graph on a site tree. Sign in with a site operator account + and verify both an allowed graph and a graph outside its remit by URL. + Give the central operations account access to the agreed cross-site view. + +## Install the plugins you will use + +Select a plugin release whose `INFO` supports the installed Cacti build. +Read its [plugin manual](supported-plugins.md) for dependencies and +upgrades. Extract each plugin under `plugins/` on the +installation that will run it. In **Console > Configuration > Plugins**, +install and enable it. Grant the required realms through user or group +management. For multi-collector plugins, follow that plugin's deployment +instructions for files, settings and data on remote collectors. + +| Job | Plugin directory | First configuration and acceptance check | +| --- | --- | --- | +| Alert on a measured value | [Thold](Plugin-Thold.md), `thold` | Create a notification list, then a threshold for one known data source. Use a test recipient and confirm breach and recovery. | +| Check a service from a specific site | [Service Checker](Plugin-Servcheck.md), `servcheck` | Grant **Service Check Admin** to the check owner. Add an HTTPS test, select the collector, and check the time, result and duration. | +| Schedule planned work | [Maintenance](Plugin-Maint.md), `maint` | Create a one-time window, associate a supported device or test, and verify that notifications resume afterward. | + +For example, after staging a compatible Thold release in `plugins/thold`, +run this from the Cacti root as the Cacti administration account: + +```console +php cli/plugin_manage.php --plugin=thold --install --enable +``` + +Confirm Thold is enabled in Plugin Management. Grant the operator the +**View Thresholds** realm and give threshold administration to the team +that maintains the rules. Use a test recipient for the first alert. + +## Rehearse a WAN outage and recovery + +Use a test collector or an approved maintenance window. Record its last +completed poll and the latest sample visible centrally. Isolate only the +test WAN path while keeping a local device reachable. Record what the +remote poller logs, what the central graph shows, and which alert path can +still reach the on-call team. Restore connectivity and check the next +collector heartbeat, the device's latest sample and any gap or delayed +data. Record the observed gap and recovery time before assigning an outage +tolerance to that site. + +## Repeat and hand over + +Roll out a small batch of similar devices. Compare poll completion time, +database load and sample age with the pilot before adding the next batch. +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. + +## Plugin setup references + +- [Thold setup][thold-setup] +- [Service Checker setup][servcheck-setup] +- [Maintenance setup][maint-setup] + +[thold-setup]: + +[servcheck-setup]: + +[maint-setup]: + + +--- + +Copyright (c) 2004-2026 The Cacti Group diff --git a/README.md b/README.md index 792db87..220504c 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,12 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. This section contains configuration requirements for particular templates. +### Deployment guides + +- [Deploy Cacti across multiple sites](Multi-Site-Deployment.md) +- [Telecommunications and Internet service providers](ISP-Deployment.md) +- [Hospital IT infrastructure](Hospital-Deployment.md) + ### Known Issues [List of Known issues](Known-Issues.md)