English | 简体中文 | हिन्दी | Español (España) | Español (Latinoamérica) | العربية
A Cacti 1.2 plugin that brings server power draw, inlet temperature, fan state, and power supply health from baseboard management controllers (BMCs) into Cacti as ordinary devices, data sources, and graphs, using Redfish with an optional IPMI fallback. Thold and Maint then alert on and suppress them, and a later phase adds rack-level power totals.
Status: in development, no release yet (0.1.0-dev). Milestones 2 (foundation) and 3 (Cacti objects and alerting) are merged on
main. This plugin is not affiliated with the Cacti project. It installs on Cacti 1.2.31 under PHP 8.2 or later, registers BMCs and credentials, reads power, temperatures, fans, and power supply health from each BMC over Redfish into its own cache, and shows collection health. It adds Cacti devices, per-member and summary graphs, and Thold and Maint support through ordinary data sources. CI has exercised a fake BMC built from hand-written fixtures and the DMTF Redfish mockup server; no real BMC or pilot fleet has been qualified. The design and research are in docs/PLAN.md, docs/research/, and docs/decisions/.
- Install, upgrade, disable, and uninstall through Cacti's plugin API, with tables kept on uninstall unless the setting is cleared. On PHP older than 8.2 the plugin refuses to install or enable and says why.
- Realms "Redfish View" (health page), "Redfish Operator" (operations page), and "Redfish Admin" (BMCs and credentials pages), and settings under Configuration > Settings > Redfish.
- A BMC registry with CSV import and JSON export. Import files must not contain passwords; credentials are referenced by name.
- Credentials stored encrypted with AES-256-GCM. The key is a file outside the database,
/etc/cacti/redfish-vault.keyby default, holding 64 hexadecimal characters (openssl rand -hex 32) or exactly 32 random bytes, owned by the poller user, not readable by other users, in a directory only the poller user or root can write. A key of 32 printable characters is refused as a passphrase. Back up the key file with the database; without it every stored password must be entered again. - TLS verification on by default, with a per-BMC CA bundle or SPKI SHA-256 pin. A logged, per-BMC unverified opt-out stays on the health page as a warning.
- A read-only Redfish client:
GETplus the session login and logout only, checked against an allowlist before any request is sent. - A collector started from
poller_bottomfor BMCs on the main poller, with per-BMC leases and deadlines, backoff, and cleanup after a crash of the one session the plugin recorded. Remote collectors are not supported yet; they need an explicit choice of how the collector reaches the database and the key (phase 4). - BMC records and credentials follow Cacti device permissions: a Redfish Admin sees, changes, and binds only BMCs on devices they may see, and only credentials that no BMC on a hidden device uses.
- Templates shipped as Cacti template XML in
templates/and imported with Cacti's own importer at install and upgrade, matched by hash, so an import updates the plugin's objects and adds nothing twice. The three data query files are copied to<cacti>/resource/script_server/with a recorded hash; the plugin never replaces a file there that it did not write, and the health page warns administrators when the templates or a query file are not in place. Reinstall the Redfish Templates on the BMCs page imports them again; it needs Cacti's Import Templates permission. - Create Device or Add Graphs on each BMC (ADR 0015). A BMC mapped to a server's existing device gets its data queries and graphs on that device. An unmapped BMC gets a new device from the "Redfish BMC" device template, with availability checks off and a host name under
.invalid, so Cacti never contacts the BMC and never shows its address. Either way an administrator first confirms a plan listing what will be added. Both need Cacti's device management permission as well as Redfish Admin; a new device the creator could not see is removed again. - Three script server data queries, "Redfish Fans", "Redfish Temperatures", and "Redfish Power Supplies", indexed by the BMC's member key, with a graph per member: fan speed in percent or RPM (whichever unit the BMC reports), temperature, and power supply input and output watts, each with its health code.
- A "Redfish Node Summary" input with power, inlet temperature, the highest temperature, fans and supplies not OK, node health, and the age of the last good read, drawn on four graphs: power, temperatures, component health, and data age. Thold thresholds on these data sources alert, and Maint suppresses them, with no change to either plugin.
- The script server answers only from the plugin's cache and never contacts a BMC. A value that is missing, stale, of another unit, or from a member that is gone is
U, so graphs show a gap, never zero;agealways has a value, so a threshold on it catches a BMC that stopped answering. - A graph link from each Redfish graph to the device's Redfish graphs, shown only to users Cacti lets see the device.
When a BMC's members change (a fan replaced, a firmware update renaming sensors), choose Add Graphs again. A fan or power supply that was present and is now absent or gone counts in fans_bad or psus_bad until you do, so a pulled fan alerts; a slot that was never filled does not. Add Graphs accepts the members the BMC reports now, and Cacti indexes the queries again; a member that is gone keeps its data source and graph, which read U from then on, and a new member gets a graph. Delete the graphs of members that are gone by hand once their history is no longer needed.
Deleting a device unmaps its BMC and keeps the BMC and its cache. Deleting a BMC, or uninstalling the plugin, keeps its device and graphs.
| Realm | Access |
|---|---|
| Redfish View | Existing monitoring pages. |
| Redfish Operator | Monitoring plus the Operations page and personal triage acknowledgments. |
| Redfish 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 Redfish 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. Operators can release a collection hold on a permitted BMC for the next scheduled run. 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.
Every server has a BMC that reports power and thermal state independently of the operating system, so it keeps answering when the OS is down. The data serves capacity and cost tracking, early warning of a failed fan or power supply, and, in high-performance computing, power-capping decisions. The plugin is not HPC-specific.
Cacti covers part of this today:
- Vendor SNMP packages. The 1.2.x branch ships Dell iDRAC and HPE iLO templates that need an SNMP agent and are vendor specific; milestone 1 research found that neither reports power draw in watts (docs/research/overlap.md).
- A credential type without a collector. plugin_credentials defines an "IPMI / Redfish (BMC)" credential but reads no BMC.
- No rack-level view. Cacti core has no rack object; a device has a free-text
locationfield.
The plugin polls BMCs out of band from Cacti's poll cycle, caches normalized readings, and exposes them through a script server data query and summary data sources. It reuses Cacti's graphing, permissions, Thold, and Maint, and does not change BMC state. Remote data collector support is planned for phase 4; current collection runs on the main poller only.
| Phase | Scope | Milestones |
|---|---|---|
| 0, research | Vendor matrix, confirmation of upstream behavior on live BMCs, polling cost, data query spike | M1 |
| 1, observe | BMC registry, credentials, TLS, Redfish collector, normalized readings, devices, per-index graphs, Thold alerting, Maint suppression, health page | M2, M3, M4 |
| 2, ipmi | IPMI fallback for BMCs without usable Redfish, off by default | M5 |
| 3, racks | Rack registry, rack power totals with coverage, budget headroom | M6 |
| 4, remote | Cacti remote data collectors for isolated BMC networks | M7 |
Out of scope: setting power caps or any other BMC configuration, power control, firmware update, console access, a plugin-owned alerting engine, and scheduler integration.
| Component | Target |
|---|---|
| Cacti | 1.2.31 or later, no core patches |
| Database | MariaDB 10.2 or MySQL 5.7 or later: one BMC per device is held by a unique key on a generated column |
| 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 |
| BMCs | Dell iDRAC, HPE iLO, Lenovo XCC, and OpenBMC, by firmware range; see the vendor matrix |
| Redfish | New subsystem and sensor resources first, deprecated Power and Thermal as fallback |
| Thold, Maint | No changes required |
- docs/PLAN.md is the full plan: architecture, upstream facts it depends on (with sources and assumptions still to confirm), measurement 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
BMC[BMCs: Redfish over HTTPS] --> C[Collector on the Cacti poller]
C --> CACHE[(Normalized reading cache)]
CACHE --> SS[Script server data query]
SS -->|poller_output| T[Thold and Maint]
SS --> G[Cacti graphs and permissions]
CACHE --> R[Rack totals, phase 3]
BMC credentials control out-of-band management of servers. The design keeps them out of command lines, logs, and pages, verifies TLS by default, runs any external command from an argument array with allowlisted subcommands, and uses read-only BMC accounts. See docs/PLAN.md and SECURITY.md.
See docs/operator-guide.md for installation prerequisites, vault and TLS setup, BMC registration, graph creation, alert intervals, backup, and failure handling. The guide does not declare a real vendor firmware line supported until a redacted capture from that firmware passes the suite.
- 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:, andstatus:. See CONTRIBUTING.md. - The project board shows all issues across milestones.
Read CONTRIBUTING.md. Commits need a DCO sign-off. Design discussion happens on issues; open decisions carry the type: decision label. Evidence from real BMCs is the most useful contribution now; redact addresses, serial numbers, and credentials before posting any capture.
GNU General Public License v2.0, the same license as Cacti and its plugins. See LICENSE.