Repository navigation
Add hourly health check with external dead-man's-switch alerting - #31
Merged
Merged
Conversation
modules/monitoring.nix checks services and failed units, the TLS certificate (expiry, self-signed placeholder), disk usage, queue size, outbound SMTP and the public IP on Spamhaus ZEN/SpamCop, and reports to settings.monitoring.healthcheckUrl (healthchecks.io, Uptime Kuma push, ...), which also alerts when reports stop. Without a URL, problems are mailed to adminEmail at most once a day. just health runs it on demand. Closes #7 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
This was referenced Oct 9, 2026
Owner
Author
|
@copilot resolve the merge conflicts in this pull request |
…nto claude/fix-7-monitoring # Conflicts: # flake.nix Co-authored-by: byjpr <[email protected]>
Contributor
Resolved the conflict by retaining both monitoring and release modules in |
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.
Closes #7
Changes
modules/monitoring.nix: an hourlymail-health-checkservice. It checks:enforcemode, an expired certificate stops inbound mail.diskWarnPercent(85).queueWarn(100) messages.gmail-smtp-in.l.google.com:25, which catches a provider block or OVH's anti-spam block.127.255.255.x) are ignored.monitoring.healthcheckUrlset (healthchecks.io, self-hosted Healthchecks, an Uptime Kuma push monitor), the result is POSTed there, to/failon problems. The service alerts on failures and on missing reports, so it also covers the server being down.adminEmail, at most once a day.just healthruns the check now and shows the output.settings.nixand the README explain the setup.Testing
I ran the generated script with stubbed
systemctl,postqueue,curlanddig. It reported:It POSTed the list to
…/fail.Both report variants (URL and mail fallback) render correctly. The generated script passes shellcheck.
All 5 provider example systems build. nixfmt, shellcheck and tofu validate pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
Generated by Claude Code