Monitor VPS Resources and Alert via Email with n8n

This n8n workflow monitors CPU, RAM, and disk usage of a VPS every 15 minutes and sends email alerts if any resource exceeds 80% usage. It solves the critical problem of unnoticed resource overload and potential server downtime.
ssh
emailSend
merge
+3
Workflow Identifier: 1557
NODES in Use: Schedule Trigger, SSH, Merge, If, Email Send, Sticky Note
Monitor VPS resources with n8n and SSH

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does ⚙️

This n8n workflow checks your VPS CPU, RAM, and Disk usage every 15 minutes automatically.
If any usage goes above 80%, it sends an email alert right away.
This stops surprise slowdowns or crashes by giving quick warnings.

The workflow connects to your server using SSH and runs commands to get real usage numbers.
Then it combines the info and tests if any number is too high.
If yes, email alerts are sent without you opening tools or watching screens.

This helps save time and keeps server problems from hurting your website.


Tools and Services Used

  • n8n: Automation platform to run the workflow.
  • SSH access: Connects to VPS to run Linux commands.
  • SMTP Email server: Sends alert emails.

Inputs, Processing, and Output

Inputs

  • Server IP and SSH username/password or key.
  • SMTP email settings and alert recipient address.
  • Schedule trigger running every 15 minutes.

Processing Steps

  • SSH nodes run shell commands to get CPU, RAM, and Disk usage percentages.
  • A merge node combines these three values into one record.
  • An if node checks if any of the usage numbers are above 80%.
  • If yes, the email send node triggers an alert message.

Output

  • Email message sent with usage percentages when any resource is high.
  • Workflow runs automatically every 15 minutes without user action.

Who Should Use This Workflow?

This is good for anyone running a VPS hosting a website or application.
If the user does not want to watch server stats all day, this gives fast alerts.

It works for beginners who set up credentials once, then let it run by itself.
Small business owners, freelancers, or IT admins can benefit from saving time and avoiding downtime.


Beginner Step-by-Step: How to Use This Workflow in n8n

Importing the Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open n8n editor and click “Import from File”.
  3. Select the downloaded file to load the workflow inside n8n.

Configuring Credentials and Settings

  1. Add or select your SSH credentials for the VPS: IP address, username, and password or use an SSH key.
  2. Add or select SMTP email credentials for sending alert emails.
  3. Edit the Email Send node to update the “To Email” and “From Email” fields with correct addresses.
  4. If needed, adjust thresholds in the If node from 80 to any preferred number.

Testing and Activating

  1. Run each SSH node manually to check they return CPU, RAM, and Disk percentages correctly.
  2. Run the entire workflow in the editor for a full test.
  3. Fix any errors shown in logs before activating.
  4. Turn the workflow toggle ON to let it run every 15 minutes automatically.
  5. Monitor workflow executions and adjust settings as needed.

For more help with self-host n8n, visit external resources.


Customization Ideas ✏️

  • Change alert thresholds per resource inside the If node for earlier or later warnings.
  • Send alerts to different emails by updating the Email Send node recipient.
  • Alter the trigger interval from 15 minutes to another period for faster or slower checks.
  • Add more SSH nodes to check other metrics like network or processes.
  • Use SSH key based authentication for safer server access instead of passwords.

Troubleshooting 🔧

  • SSH connection issues: Check login details and test SSH separately. Make sure firewall allows port 22.
  • Email send failures: Test SMTP settings. Try another email provider or check for blocked email ports.
  • Wrong or empty metrics: Run shell commands manually on your server to verify correctness and tool availability.

Pre-Production Checklist ✅

  • Test each SSH node returns a valid number.
  • Verify the Merge node combines data correctly.
  • Check the If node triggers on values above 80%.
  • Send a test email with the Email Send node.
  • Confirm the Schedule Trigger runs every 15 minutes.
  • Backup the workflow before saying it is ready.

Deployment Guide

After you finish testing, activate the workflow in your n8n dashboard.
It will check VPS resources every 15 minutes and send alerts when usage is high.

Keep an eye on execution logs for errors and alerts.
Adjust settings or email addresses anytime without downtime.


Summary

✓ Automatically monitor VPS CPU, RAM, and Disk usage.
✓ Get instant email alerts if usage is above 80%.
✓ Save time by avoiding manual server checks.
✓ Prevent downtime and slowdowns for better service.
✓ Easy setup and customization inside n8n.


Monitor VPS resources with n8n and SSH

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, the workflow supports SSH key credentials which can be configured in the SSH nodes for better security.
Incorrect SSH credentials or firewall blocking port 22 often cause SSH connection failures.
Verify the SMTP settings and credentials. Check for blocked SMTP ports or try a different email provider.
Yes, the workflow can be duplicated and configured with different server credentials to monitor multiple VPS servers.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.