Skip to content

About

Read-only SmokePing integration for Cacti: import configuration and RRD observations, map targets to devices, render latency and packet-loss graphs, and integrate with Thold and Maint.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

English | 简体中文 | हिन्दी | Español (España) | Español (Latinoamérica) | العربية

SmokePing Cacti Plugin: a cactus wearing a badge with a SmokePing graph

SmokePing plugin for Cacti

CI License: GPL-2.0-or-later PHP >= 8.2 Cacti >= 1.2.31 Quality Gate Status Coverage Security Rating Reliability Rating SmokePing: read-only

A Cacti 1.2 plugin that brings SmokePing latency and loss measurements into Cacti as ordinary devices, data sources, and graphs. Smoke graphs then sit next to the device they belong to, under Cacti's permissions, and Thold and Maint can alert on and suppress them. It is an independent implementation for Cacti and is not part of, or endorsed by, SmokePing, whose original authors are Tobias Oetiker and Niko Tyni. The plugin neither includes nor runs SmokePing's code: it reads the configuration and RRD files that SmokePing writes, and its graph templates are built to draw the same series as SmokePing's own graphs.

Status: in development. Observe mode (phase 1) is implemented on main and released as the 1.0.0-rc.1 pre-release. The plugin reads SmokePing's configuration and RRD files, shows their state, creates Cacti devices, data sources, and graphs for them, and feeds Thold and Maint. It writes nothing to SmokePing. Managed mode (the plugin writing SmokePing configuration) and remote collectors are later phases, not started, and are not in this release. Pilots on real installations and a closer match to SmokePing's graph legend are still open in milestone 4. See docs/install.md to start.

Access roles

Realm Access
SmokePing View Existing monitoring pages.
SmokePing Operator Monitoring plus the Operations page and personal triage acknowledgments.
SmokePing Admin Operator access plus the existing configuration and administrative actions.

After copying upgrade files, open the Plugins page as an administrator to register the new realm. Assign the Operator realm explicitly under Configuration > Users or user groups. Upgrades retain the existing View and Admin realm IDs and grants. Admin access inherits Operator access, and Operator access inherits View access on each request; this does not add stored grants to users or groups. Plugin settings also require SmokePing Admin access in addition to Cacti's Settings permission.

Cacti device permissions still limit the rows and actions available to each user; unmapped objects require an administrator. Credentials, configuration, mapping, deletion and other administrative changes remain in the administrative pages. Acknowledgments last only in the current user's session, for at most one hour and only while the same observation remains fresh. New or changed observations invalidate them. They never mark a failed measurement healthy or suppress alerts.

Screenshots

Imported from a live SmokePing 2.8.2 network into Cacti 1.2.31, last 12 hours. Each target's device has a smoke graph for the master and one for each slave (lon1, sgp1), filed under its SmokePing section in the graph tree.

Cacti tree view of the Bangalore target: smoke graphs from the master and the lon1 and sgp1 slaves

Cacti tree view of the London target: the lon1 slave in the same region shows microsecond latency with visible smoke

Why

SmokePing measures latency distribution and packet loss well, and its smoke graphs show variation that an average-only graph hides. Run alongside Cacti, it leaves three gaps:

  • Separate access control. SmokePing's CGI knows nothing about Cacti users, groups, or device permissions.
  • No device context. Latency and interface counters for the same device live in different tools.
  • No path into Cacti alerting. Thold and Maint work on Cacti data sources and devices, so SmokePing alerts are configured and suppressed separately.

The plugin closes these gaps by representing each SmokePing target as Cacti objects that point at SmokePing's existing RRD files, plus a small set of polled summary values. It reuses Cacti's graphing, permissions, Thold, and Maint rather than building parallel versions of them. Support for Cacti remote data collectors is planned for phase 3 and is not in this release.

Scope and status

Phase Scope Milestones Status
0, research Compatibility matrix, upstream behavior confirmation, graph fidelity spike M1 Findings in docs/research; some research issues are open
1, observe Inventory import, Cacti devices, smoke and summary graphs, Thold alerting, Maint suppression, health page M2, M3, M4 Released as 1.0.0-rc.1; pilots open
2, managed Cacti-owned configuration namespace, ICMP and TCP probe profiles, revisions, validation, reload, rollback M5 Planned, not started
3, remote SmokePing on Cacti remote data collectors, slaves as measurement locations M6 Planned, not started

Out of scope: a plugin-owned alerting engine, a reporting engine, a custom daemon or network protocol, managed HTTP/DNS/service checks (servcheck covers them), and writing to SmokePing's RRD files.

Compatibility targets

Component Target
Cacti 1.2.31 or later in 1.2.x, no core patches
PHP 8.2 or later; setup.php stays parseable on 8.0 so an unsupported runtime gets a refusal instead of a broken Cacti UI
SmokePing 2.9.0, 2.8.2, and 2.7.3 (Ubuntu 22.04 only, until 2027-06-01)
Thold, Maint No changes required
Series 10,000 per installation at 20 pings and a 300 s step (performance)

Documentation

Install Requirements, the read-only mount of SmokePing's data directory, installation, containers, supported versions
Operate What each state means and its evidence, health checks, behavior when inputs fail
Add targets to Cacti One target, many devices, re-linking, permissions
Alerting Summary values, Thold durations, staleness, late data, overlap with SmokePing's alerts, Maint
Configuration format YAML and XML export and import
Backup and restore What to back up and how a restore resumes
Performance Local and release-runner measurements at 100, 1,000, and 10,000 series, and the supported series count: 10,000 per installation
Failure qualification The failure scenarios and how each is tested
Releasing The release procedure: the pull request, the signed tag, what the workflow does, how to verify the result
Release archive Version, changelog, and the release archive
Testing The suites, what CI runs, and the live suite against a real SmokePing

Design

  • docs/PLAN.md is the full plan: architecture, upstream facts it depends on (with sources), state model, security boundaries, performance arithmetic, testing, and risks.
  • docs/decisions/ holds architecture decision records for choices already made.
  • docs/REQUIREMENTS.md maps every requirement ID to its issue.
flowchart LR
    SP[SmokePing daemon] --> RRD[(RRD files)]
    RRD -->|read-only| R[Reader on the adjacent Cacti poller]
    RRD -->|read-only| G[Cacti graph templates]
    R --> SS[Script server summary data sources]
    SS -->|poller_output| T[Thold and Maint]
    G --> P[Cacti graph permissions]
Loading

How work is tracked

  • Milestones follow the plan's milestones. Each has an epic issue listing its sub-issues and exit evidence.
  • Issues are typed by label: type: requirement, type: research, type: decision, type: epic. Requirement issues state numbered, testable requirements (REQ-AREA-NNN) and acceptance criteria.
  • Labels also carry area:, phase:, priority:, and status:. See CONTRIBUTING.md.
  • The project board shows all issues across milestones.

Contributing

Read CONTRIBUTING.md. Commits need a DCO sign-off. Design discussion happens on issues; open decisions carry the type: decision label.

Security

Report vulnerabilities privately; see SECURITY.md.

License

GNU General Public License v2.0, the same license as Cacti and its plugins. See LICENSE.

About

Read-only SmokePing integration for Cacti: import configuration and RRD observations, map targets to devices, render latency and packet-loss graphs, and integrate with Thold and Maint.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages