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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free