From e02147408a73d50a97aa0775cc6a93475fd0ea82 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 18 Feb 2026 11:11:38 -0600 Subject: [PATCH] Add web apps monitoring documentation and auto-restart cron job - Created memory/web-apps-monitoring.md with status and restart instructions - Set up cron job to check both sites every 10 minutes - Auto-restarts any site that returns non-200 or times out - Sends Telegram notification if restart occurs --- memory/web-apps-monitoring.md | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 memory/web-apps-monitoring.md diff --git a/memory/web-apps-monitoring.md b/memory/web-apps-monitoring.md new file mode 100644 index 0000000..a35c6e6 --- /dev/null +++ b/memory/web-apps-monitoring.md @@ -0,0 +1,42 @@ +# Web Apps Monitoring + +## Active Sites + +| Site | URL | Port | Purpose | +|------|-----|------|---------| +| Project Hub | http://localhost:3000 | 3000 | Task/idea tracking with Kanban | +| Blog Backup | http://localhost:3003 | 3003 | Daily digest & message backup | + +## Auto-Restart Monitoring + +**Cron Job:** `Monitor Web Apps - Auto Restart` +- **Frequency:** Every 10 minutes +- **Action:** Checks HTTP 200 status on both sites +- **On Failure:** Automatically restarts the down service(s) +- **Notification:** Telegram message if restart occurred + +## Manual Restart + +If both are down: +```bash +# Project Hub +cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/gantt-board +npm run dev -- --port 3000 + +# Blog Backup +cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/blog-backup +npm run dev -- --port 3003 +``` + +## Check Status +```bash +curl http://localhost:3000 +curl http://localhost:3003 +``` + +## For Future AI Continuity +If this agent is replaced: +1. Run `openclaw cron list` to see monitoring job +2. Check `process list` for running dev servers +3. Restart manually if needed using commands above +4. Both projects are in `/Users/mattbruce/Documents/Projects/OpenClaw/Web/`