claude-memory/graph/solutions/n8n-claude-code-automated-server-monitoring-system-62ee21.md

5.6 KiB

id type title tags importance confidence created updated relations
62ee21e8-2b56-4d38-a73d-47e2724f08c6 solution N8N + Claude Code Automated Server Monitoring System
n8n
claude-code
automation
docker
monitoring
homelab
discord
ssh
proxmox
0.9 0.8 2025-12-20T04:35:53.428069+00:00 2026-03-05T03:43:01.689838+00:00
target type direction strength
775506ce-ed06-4c36-95f3-73379855b44a BUILDS_ON outgoing 0.5
target type direction strength edge_id
7fdc5ceb-4b8c-426d-8492-948d106f92bb BUILDS_ON incoming 0.9 4fe26e78-998a-4524-8323-63b82348c1ca
target type direction strength edge_id
aab3d007-0cdf-4a4f-9b55-096ea4bdc168 BUILDS_ON incoming 0.8 dde412b4-e0ee-4781-b1af-07cb3290d740
target type direction strength edge_id
fe9a0055-babb-4809-8f0b-7a471532503a BUILDS_ON incoming 0.8 6c3022f5-2311-4e22-9f9a-816cf68952dc
target type direction strength edge_id
089f4cd8-4b2b-49a5-aac1-af2811b8ea7d RELATED_TO incoming 0.8 0645a098-9a7b-4c7e-969c-9c15ad0ef449
target type direction strength edge_id
8023fae6-eec1-4c93-bac8-1bd85dd61bae BUILDS_ON incoming 0.73 02222313-fdd0-40aa-aa9d-cb66c6a309d6
target type direction strength edge_id
cb5e8814-f689-4de0-8854-823358706dec RELATED_TO incoming 0.89 db026c0c-561b-4707-a639-e84fd30796bf
target type direction strength edge_id
b27fb831-811e-4103-b5f1-3c36d5b1ad20 RELATED_TO incoming 0.73 15fd8a10-633a-4e2d-9aa8-711c10c10ecf
target type direction strength edge_id
dfe48a70-b8ab-4bb5-a3d8-6116fa498168 RELATED_TO incoming 0.8 ceab40c6-01c6-4e31-959b-4b6ef9878bcf
target type direction strength edge_id
06101183-a78b-4852-86eb-cae5557ace8c RELATED_TO incoming 0.88 36bdf4ec-3059-471b-9a5d-6ab0f588c095
target type direction strength edge_id
c684a1ea-bdb6-4e4b-9416-e50e471221a0 BUILDS_ON incoming 0.84 d78df359-2844-4280-ad56-4a8dd16d6b7f
target type direction strength edge_id
67898e52-470a-470e-b149-43fef0047ae9 BUILDS_ON incoming 0.9 e8d32f61-8e04-4d96-bf73-c12011bdbde4
target type direction strength edge_id
967ad46d-ba89-4207-b870-db4b8558f2bb RELATED_TO incoming 0.76 79d285bc-32d6-4616-80ac-b2cda7684495
target type direction strength edge_id
1177d1f5-6df7-42ae-beef-bbd6b22d2fae RELATED_TO incoming 0.71 cc037348-44c5-467e-a9f1-8866bd4773c2
target type direction strength edge_id
be0bda86-d893-4f86-97c4-0ca4e1073121 BUILDS_ON incoming 0.78 98dd95aa-3b6e-4b89-aa90-5877eb37e1a2
target type direction strength edge_id
346c5a34-3fed-44ff-832a-b0c9eb42ca88 BUILDS_ON incoming 0.73 285800e7-a6b0-4cf2-b017-91b209ef61bd
target type direction strength edge_id
c4be970f-3516-4cce-8d0e-96941811a5e5 RELATED_TO incoming 0.84 e85e5812-8868-4d4f-b6f9-c3422c094485
target type direction strength edge_id
c4b2f42d-b443-447f-8a05-bba099e06036 RELATED_TO incoming 0.74 2b3d8278-ab2c-45a0-a148-d321a49a7c08
target type direction strength edge_id
1df35c2c-3749-4777-af9f-c6e2e5111979 RELATED_TO incoming 0.76 a649f391-20c5-43a1-a4c3-5b300f02d43f
target type direction strength edge_id
6c51ddeb-559e-4997-9d7e-c8891b05dc84 RELATED_TO incoming 0.72 bf856749-1881-4fba-a92a-dde070f24720
target type direction strength edge_id
4c3c7a86-46b6-4d42-a966-35071ba3bfe1 BUILDS_ON incoming 0.67 7e3aa1c6-72bf-42f9-898a-6bafdccdab26
target type direction strength edge_id
5cdfc099-7916-440a-a711-1a47ad8dc3bd RELATED_TO incoming 0.76 33abbe71-714e-41c5-b6e1-bbf2194d3e86
target type direction strength edge_id
d0ac9986-d5a7-4c38-acb2-5110abcbc870 SOLVES outgoing 0.69 288b660f-704c-4cff-a560-1646a2c08434
target type direction strength edge_id
e5922fd9-9afc-46ae-bcce-39d0938bfee3 RELATED_TO incoming 0.77 0df175ef-062b-46c7-8a39-6f407d9e4049
target type direction strength edge_id
5cf15362-1388-4637-b0c8-e6a07d2629f0 BUILDS_ON incoming 0.71 a0bbfc97-8c7b-4e0f-b9a3-ca5ba0294add
target type direction strength edge_id
ccb2b5a4-a9bb-4f8f-9367-d74713ab2415 BUILDS_ON incoming 0.78 dd74a210-1868-4c5d-867a-2ab980fec077

Built automated server health monitoring with N8N and Claude Code headless mode.

Architecture:

  • Claude Code LXC (10.10.0.148, CT 300) runs diagnostics
  • N8N (10.10.0.210) triggers checks every 5 minutes
  • Two-stage cost optimization: free Python health check, Claude only on issues
  • SSH chain: N8N → Claude LXC → Target servers

Key Components:

  • server-diagnostics skill at ~/.claude/skills/server-diagnostics/
  • health-check.sh: Free detection script (grep for exited/stopped containers)
  • remediate.sh: Claude-powered analysis and auto-fix
  • Discord webhook for alerts

Lessons Learned:

  • Docker 20.10 doesn't support --format 'json', use Go templates instead
  • N8N SSH node has quoting issues - use wrapper scripts
  • Discord embeds don't support markdown tables - use bullet points
  • Ubuntu 22.04 LXC template failed, 20.04 works
  • Python 3.8 needs Optional[str] not str | None syntax

Cost Model:

  • Healthy checks: $0 (just Python script)
  • Issues found: ~$0.10-0.15 (Claude remediation)

Bonus Fixes:

  • avahi-daemon was consuming 67+ hours CPU responding to Docker veth changes
  • GNOME desktop services (gdm, gvfs) wasting ~12% CPU on headless server