Guard Hostinger VPS CPU spikes with Anthropic, SSH, and email approvals
UnknownWhat this workflow does
This AI workflow has 39 nodes and runs on a schedule (every 15 minutes) (plus 1 other trigger). Along the way it connects Anthropic and Hostinger Api (community).
How it runs
Trigger: On a schedule (every 15 minutes) (plus 1 other trigger).
- Config: Detection Settings (Edit Fields (Set)): sets 8 fields: vpsId, notificationEmail, cpuThreshold…
- Extract Case ID & Decision (Code): runs custom JavaScript code
- Get VPS Metrics (Hostinger Api): get vm metrics
- Case ID Found & Approved? (If): checks a condition and branches into true / false
- Analyze Metrics (Code): runs custom JavaScript code
- Config (Kill Listener) (Edit Fields (Set)): sets 3 fields: vpsId, sshHost, notificationEmail
- CPU Spike? (If): checks a condition and branches into true / false
- SSH: uses SSH
- Get CPU Process List (SSH): uses SSH
- Parse Case (Code): runs custom JavaScript code
…plus 25 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-hostinger-api is verified or supports 3.0 (used in Create Snapshot, Get VPS Metrics, List Firewalls).
Nodes used (11)
- Code
n8n-nodes-base.code - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Edit Fields (Set)
n8n-nodes-base.set - Send Email
n8n-nodes-base.emailSend - Hostinger Api
n8n-nodes-hostinger-api.hostingerApi - Wait
n8n-nodes-base.wait - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Anthropic
@n8n/n8n-nodes-langchain.anthropic - SSH
n8n-nodes-base.ssh
From the author
Quick overview This workflow monitors a Hostinger VPS every 15 minutes for CPU spikes, correlates them with traffic anomalies, and either auto-activates a lockdown firewall or emails a process report with AI analysis and an email-reply approval path to…