Skip to content

Email alerts when monitored servers go offline (#529)#559

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/server-unreachable-email-529
Mar 16, 2026
Merged

Email alerts when monitored servers go offline (#529)#559
erikdarlingdata merged 1 commit intodevfrom
feature/server-unreachable-email-529

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Sends email alert on online→offline transition (fires once, not repeatedly)
  • Sends "Server Restored" email on offline→online transition
  • Uses existing NotifyOnConnectionLost / NotifyOnConnectionRestored preferences — no new settings
  • Adds Server Unreachable (red/CRITICAL) and Server Restored (green/RESOLVED) to email template severity map
  • Rate-limited by EmailAlertService cooldown if a server flaps

Fixes #529

Test plan

  • Configure SMTP, stop a monitored SQL Server, verify email arrives once
  • Verify no repeat emails while server stays offline
  • Restart server, verify "Server Restored" email arrives
  • Verify tray notifications still work alongside emails

🤖 Generated with Claude Code

The existing NotifyOnConnectionLost/Restored settings only sent tray
notifications. Now also sends an email (if SMTP is configured) on the
online→offline transition and a "Server Restored" email when it comes
back. Fires exactly once per transition — no repeated alerts while
the server stays down.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant