Repository navigation
docs: notification delivery design (lists, Alarm Manager, Credentials, path into core) - #971
Merged
Merged
Conversation
… channels and escalation Propose keeping Notification Lists as the "who" in thold and using the Alarm Manager plugin for delivery, graph images and escalation. Describe the thold and Alarm Manager changes, the existing and proposed plugin hooks between them, fallback behaviour, phases and tests (#718, #240). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…anager Explain how destinations would reference a plugin_credentials credential instead of holding their own ciphertext, how that moves the encrypted secret from Alarm Manager's key to the core secret_encryption_key or an external vault, the remote-collector gap, the additions needed in the Credentials plugin, and the opt-in upgrade and rollback path for plugin_alarmmanager. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new docs/ directory is missing from manifest.json’s expected entries, causing CI manifest validation to fail and upgrades to report it as unexpected.
7 open issues
Register docs/ in the manifest expected array · New Dispatch once per transition before recipient guards · New Preserve rendered HTML bodies and inline graphs · New Deduplicate notifications per target, not just endpoint · New Resolve Cacti timespan presets instead of treating them as days · New Acknowledge using the persisted producer stream identity · New Use per-channel ownership decisions for publish fallback · New
What changed in this PR
Adds a design proposal connecting Thold Notification Lists to Alarm Manager for multi-channel delivery, graph images and escalation. Notification behavior remains unchanged.
Changes:
- Defines plugin responsibilities, proposed hooks, fallback behavior and a phased delivery plan.
- Links the proposal from the README.
- Adds a directory guard for
docs/.
| File | Description |
|---|---|
| README.md | Adds a Design documents section linking the proposal. |
| docs/notification-delivery-design.md | Describes notification integration, compatibility, security and testing. |
| docs/index.php | Redirects directory requests to the plugin index. |
Review effort: Balanced
tests/bin/validate-manifest.php fails CI on any top-level entry the manifest does not account for. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… core Recommend moving both plugins into develop as separate subsystems, with Alerts consuming Credentials and built on the core Symfony Notifier API. Fold SNMP credentials into core Credentials in two phases, and describe the upgrade through $plugins_integrated, table adoption, the Alarm Manager secret move, plugin API continuity, collectors and 1.2.x. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
xmacan
previously approved these changes
Dec 5, 2026
…ack; list core PRs - Dispatch once per transition from every evaluator send site, before the To guard, so chat-only lists still notify. - Follow the bridge's per-channel decision, including committed-then-thrown and ownership_unknown, so nothing is sent twice. - Carry the rendered HTML body (details_html) in contract v2. - Treat graph_timespan as a GT_* preset and send resolved start/end bounds. - Deduplicate list deliveries per (event, destination, target), reusing the recipient key. - Acknowledge by alarm_key and resolve the persisted stream, not a hash computed on the web node. - Add section 12.8 listing the merged and open Cacti core pull requests this work builds on, and correct the REST (#7351) and ODBC (#7297) issue numbers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
docs/index.php is a bare redirect like cli/index.php, so it is never loaded into the isolated unit process and cannot appear in Clover. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
xmacan
approved these changes
Dec 5, 2026
xmacan
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Summary Adds
docs/with a design proposal for multi-channel notification delivery: keep thold's Notification Lists as the place that says who gets told, and use the Alarm Manager plugin for how (Slack, Teams, Telegram, SMS, PagerDuty, ServiceNow, webhooks, email), graph images and escalation. Documentation only; no behaviour changes. ## What the document covers - Responsibility split: - Thold owns the lists, their To/BCC and their assignment to thresholds, templates and devices, and produces the events. - Alarm Manager owns destinations, credentials, queues, rules, maintenance, acknowledgment and escalation. - Thold's current mail and command path stays as the fallback. - Email as a destination without changing what email-only users see: - a built-in "Cacti Mailer" destination; - recipients stay on the list's General tab. - Thold changes (T1-T7): - onethold_notify_dispatch()seam used by both the threshold path and the device path; - Alarm Manager's existingAlarmManagerProducerBridge::publish()/::owns()andalarmmanager_device_bridge_decision()wired in, so nothing is sent twice; - proposed hooksalarmmanager_event_context,thold_notify_list_lookupandthold_alarm_acknowledged; - acknowledgment hooks inthold_threshold_ack()and its siblings; - what does not change. - Alarm Manager changes (A1-A7): - event contract v2 (lists, recipients, format file, graphs); - email parity (BCC, format files, inline<GRAPH>); - list routing table; - Destinations and Escalation tabs on thold's existingnotify_list_tabs/notify_list_displayhooks; - escalation policies, steps and timer; - graph upload per provider (TelegramsendPhoto, Slack two-step upload, Teams by URL); - acknowledgment hooks. - A hook/function table marking what exists versus what is proposed, plus security, compatibility/fallback, a four-phase delivery plan, testing and open questions. Also addsdocs/index.php(the usual directory guard) and a "Design documents" section inREADME.md. Related: #718, #240, #118, #31, #873, Cacti/cacti#2840, Cacti/cacti#7781, Cacti/plugin_alarmmanager. ### Update: Credentials plugin (section 7) - Optional secret store: Alarm Manager destinations can reference a plugin_credentials credential, local or vault-backed, throughcredentials_get(). - Where the secret lives: this moves the encrypted secret from Alarm Manager'salarmmanager_keyto the coresecret_encryption_keyor an external vault. The trade-offs are covered, including that core replicates its key to collectors whilecredentialsrows are never replicated. - Requested Credentials plugin additions:secret_urlandhttp_headerstypes,credentials_save(), and thecredentials_types,credentials_in_useandcredentials_changedhooks. - Alarm Manager upgrade path: additive schema change, opt-in--migrate-to-credentialswith verification and rollback, export by name, backing up both keys, and collectors unchanged. - Thold: no change. ### Update: path into Cacti core (section 12) - Recommendation: don't merge the plugins into each other. Move Credentials, Alarm Manager (as core Alerts) and Notification Lists intodevelop(1.3) as separate subsystems. Alerts consumes Credentials and is built on the Symfony Notifier API already indevelop(api_notification_send(),notification_channelshook, Cacti/cacti#7775). - SNMP credentials in core Credentials: - Phase S1:snmp_credential_idon devices, templates, automation and SNMP agent managers. Values are written into the existing columns, so spine and collectors need no change. - Phase S2: SNMP secrets encrypted at rest, with spine support and collector key handling. - Upgrade path following the 1.0.0 pattern (snmpagent,nectar,aggregate,autom8): -$plugins_integrated, then table adoption. Credentials tables keep their names and ciphertext; Notification Lists and Alarm Manager tables are renamed. - Alarm Manager secrets move into Credentials; anything that can't move is left disabled rather than failing the upgrade. - SNMP deduplication into named credentials. - Plugin APIs stay working, including a producer-bridge update shipped ahead of the core release. - Queue continuity, collectors, and 1.2.x maintenance. - Requirements to settle first (MariaDB-only SQL, the daemon, crypto format, realms, where-used checks), a proposed order ondevelop, and open questions. Includes a rebase onto TheWitness'smanifest.jsoncommit.Update: review fixes and core PR list
ownership_unknown;details_htmlin contract v2;GT_*preset plus resolvedstart/end;alarm_keyagainst the persisted stream.develop: #7190, #7775, #7782, #7791, #8074, #8174, plus the Reports-to-Notification-List commits.develop, to merge first or alongside: #7790 (queue API), #8726 (secret form fields), #9283 (lock component).