tractatus/scripts
TheFlow c755c49ec1 ops: implement comprehensive production monitoring system
Create self-hosted, privacy-first monitoring infrastructure for production
environment with automated health checks, log analysis, and alerting.

Monitoring Components:
- health-check.sh: Application health, service status, DB connectivity, disk space
- log-monitor.sh: Error detection, security events, anomaly detection
- disk-monitor.sh: Disk space usage monitoring (5 paths)
- ssl-monitor.sh: SSL certificate expiry monitoring
- monitor-all.sh: Master orchestration script

Features:
- Email alerting system (configurable thresholds)
- Consecutive failure tracking (prevents false positives)
- Test mode for safe deployment testing
- Comprehensive logging to /var/log/tractatus/
- Cron-ready for automated execution
- Exit codes for monitoring tool integration

Alert Triggers:
- Health: 3 consecutive failures (15min downtime)
- Logs: 10 errors OR 3 critical errors in 5min
- Disk: 80% warning, 90% critical
- SSL: 30 days warning, 7 days critical

Setup Documentation:
- Complete installation instructions
- Cron configuration examples
- Systemd timer alternative
- Troubleshooting guide
- Alert customization guide
- Incident response procedures

Privacy-First Design:
- Self-hosted (no external monitoring services)
- Minimal data exposure in alerts
- Local log storage only
- No telemetry to third parties

Aligns with Tractatus values: transparency, privacy, operational excellence

Addresses Phase 4 Prep Checklist Task #6: Production Monitoring & Alerting

Next: Deploy to production, configure email alerts, set up cron jobs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 22:23:40 +13:00
..
monitoring ops: implement comprehensive production monitoring system 2025-10-09 22:23:40 +13:00
add-sections-to-documents.js feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
audit-accessibility.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
check-color-contrast.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
check-session-pressure.js feat: session management + test improvements - 73.4% → 77.6% coverage 2025-10-07 09:11:13 +13:00
clean-test-db.js fix: add Jest test infrastructure and reduce test failures from 29 to 13 2025-10-09 20:37:45 +13:00
deploy-frontend.sh feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
deploy-full-project-SAFE.sh security: create deployment exclusion list and safe deployment script 2025-10-09 15:47:20 +13:00
deploy-koha-to-production.sh feat: add Koha pre-production deployment configuration 2025-10-08 21:00:54 +13:00
framework-watchdog.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
generate-pdfs.js feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
generate-single-pdf.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
import-technical-docs.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
init-db.js feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
init-koha.js feat: implement Koha donation system frontend (Phase 3) 2025-10-08 13:56:56 +13:00
install-mongodb-service.sh feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
install-systemd.sh feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-appendix-documents.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-documents.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
mobile-audit.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
mongodb-tractatus.service feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
performance-audit.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
pre-action-check.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
recover-framework.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
security-audit.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
seed-admin.js feat: add API routes, controllers, and migration tools 2025-10-07 00:36:40 +13:00
session-init.js feat: comprehensive documentation improvements and GitHub integration 2025-10-09 14:33:14 +13:00
validate-document-security.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
validate-public-sync.js fix: update validation script to allow legitimate public info 2025-10-09 15:23:40 +13:00