Skip to content
FlowHubFluxonLab
AI Automationfree

Guard Hostinger VPS CPU spikes with Anthropic, SSH, and email approvals

by Hostingeradapted from n8n official workflow galleryUpdated Aug 2026
RequiresAnthropicCCodeSend EmailSend Email
Share Post Share
CoFormat Process ListFormat Process …CoParse AI AnalysisParse AI Analys…CoBuild Log EntryERIMAP Trigger: New ReplyIMAP Trigger: N…CoExtract Case ID & DecisionExtract Case ID…IfCase ID Found & Approved?Case ID Found &…NONo Action (Not Approved)No Action (Not …SeConfig (Kill Listener)Config (Kill Li…CoParse CaseIfFound & Pending?ESEmail: Case Not FoundEmail: Case Not…HACreate SnapshotWaWait (snapshot buffer)Wait (snapshot …CoBuild Kill CommandBuild Kill Comm…CoBuild Kill Log EntryBuild Kill Log …ESEmail: Killed ConfirmationEmail: Killed C…ScSchedule: Every 15 MinSchedule: Every…SeConfig: Detection SettingsConfig: Detecti…HAGet VPS MetricsCoAnalyze MetricsIfCPU Spike?NONo Action: Below ThresholdNo Action: Belo…IfTraffic-Driven?HAList FirewallsCoFind Lockdown FirewallFind Lockdown F…IfLockdown Firewall Exists?Lockdown Firewa…HACreate Lockdown FirewallCreate Lockdown…CoSplit Allowed PortsSplit Allowed P…HACreate Firewall RuleCreate Firewall…CoFinalize Lockdown FirewallFinalize Lockdo…HAActivate Lockdown FirewallActivate Lockdo…ESAlert: Lockdown ActivatedAlert: Lockdown…ESAlert: Non-Traffic CPU SpikeAlert: Non-Traf…Analyze CPU Spike with AIAnalyze CPU Spi…SsGet CPU Process ListGet CPU Process…SsLog CPU useSsSSH: Read Case logSSH: Read Case …SsSSH: Kill flagged processesSSH: Kill flagg…SsSSH: Log case (killed)SSH: Log case (…1234567891011121314151617181920212223
1/5
FLOWS
STEPS · 23
Runs on a schedule

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 snapshot and kill high-CPU processes. How it works Runs every 15 minutes and loads the VPS ID, SSH host, alert email, and CPU/traffic thresholds. Fetches the last two hours of CPU and network traffic metrics from the Hostinger API and determines whether the latest CPU usage exceeds the configured threshold and whether traffic is anomalous. When a CPU spike is detected, connects over SSH to run ps aux --sort=-%cpu, formats the top processes, and flags PIDs exceeding the kill CPU threshold. Sends the raw process list to Anthropic (Claude) to generate a short diagnosis and recommendation. If the spike appears traffic-driven, lists/creates a Hostinger “lockdown” firewall that only allows the configured ports, activates it on the VPS, and emails a lockdown alert.

Tags

n8nreference-onlyanthropicemail-send
Connects
AnthropicCCodesendemailSend Email
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes39
AddedJul 13, 2026

Related workflows

See all AI Automation
ABCD
free

Run AI employee onboarding with Groq, Google Workspace, and Gemini

Quick overview This workflow ingests onboarding documents from Google Drive into an in-memory vector store with Google Gemini embeddings, then runs a multi-channel onboarding chatbot powered by Groq, sends role-based welcome emails via Gmail when a new hire appears in Google Sheets, and schedules day 1/7/30 check-in emails. How it works Manually runs an ingestion flow that lists files in a specified Google Drive folder, downloads them, extracts text, and indexes them into an in-memory vector store using Google Gemini embeddings. Receives employee questions via n8n Chat (and optionally Slack or Telegram), normalizes the message into a single format, and rejects empty or overly long inputs. Uses a Groq LLM agent with per-user session memory to retrieve relevant excerpts from the in-memory company_docs knowledge base and generate a grounded answer, or directs the user to HR when no relevant content is found. Routes the assistant’s response back to the originating channel (n8n Chat, and optionally Slack or Telegram). Triggers every minute on updates to a Google Sheets “Hires” sheet, validates rows marked as Hired, and skips hires already present in the “Tracking” sheet. Builds a depart

by Yash Kabra
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
Cgmail
free

Sort Gmail leads, meetings, and trash with OpenAI classification

Quick Overview This workflow monitors Gmail for new messages, applies rule-based pre-classification, and uses OpenAI to categorize ambiguous emails as lead, review, or trash, then applies Gmail labels and schedules automatic deletion for trash threads. How it works Triggers every 5 minutes when a new Gmail message is received. Fetches the full email content from Gmail and extracts key fields like sender, subject, body, and thread ID. Applies deterministic rules to classify emails as team, meeting, website form, trash (bulk/OTP), or unknown. Adds Gmail labels for team and meeting emails, and skips processing for website form submissions. Sends only unknown emails to OpenAI for classification into LEAD, REVIEW, or TRASH and parses the returned JSON safely. Labels lead and review emails in Gmail, and for trash emails calculates a deletion timestamp, labels them as pending deletion, waits until that time, and then moves the entire Gmail thread to trash. Setup Connect a Gmail OAuth2 credential and ensure the trigger and Gmail actions point to the correct mailbox. Add an OpenAI API credential and select a model in the OpenAI classification step. Replace the placeholder Gmail label IDs (T

by Marc Soummer