Monitor Docker host health via SSH with GPT-4o-mini and alerts to Discord
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs on a schedule (cron 0 7 * * *) (plus 2 other triggers). Along the way it connects Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On a schedule (cron 0 7 * * *) (plus 2 other triggers).
- ⚙️ Configure monitoring settings (Edit Fields (Set)): sets 9 fields: discord_webhook_url, disk_warning_pct, disk_critical_pct…
- ⚙️ Alert settings (Edit Fields (Set)): sets 5 fields: discord_webhook_url, disk_critical_pct, memory_critical_pct…
- Create health dashboard spreadsheet (Google Sheets): work with spreadsheet
- Collect system metrics (SSH): uses SSH
- Quick system health check (SSH): uses SSH
- Build dashboard layout (Code): runs custom JavaScript code
- Collect Docker container metrics (SSH): uses SSH
- Check against critical thresholds (Code): runs custom JavaScript code
- Format spreadsheet as dashboard (HTTP Request): calls an HTTP API (POST)
- Parse and normalize all metrics (Code): runs custom JavaScript code
…plus 10 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - SSH
n8n-nodes-base.ssh - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
This n8n template builds an automated health monitoring dashboard for your homelab Docker host. It SSHs into your server, collects 30+ system and container metrics, analyzes trends with AI, and delivers a structured multi-embed dashboard to Discord -- plus…