Files
Cactidocumentation/Test-Alert-Delivery.md
T

3.9 KiB

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 in plugins/thold and Service Checker 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 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