Automate daily server health checks using this n8n workflow. Run SSH commands, check for upgradable packages, and send instant email notifications via SMTP if updates are detected.
Download this n8n workflow template and start using it instantly.
DevOps Engineers and System Administrators who manage remote Linux servers.
Users looking for reliable server monitoring n8n templates.
Anyone needing a daily scheduled n8n workflow to check security and maintenance status.
Users utilizing the n8n node ecosystem for infrastructure checks.
Maintaining server security requires frequent checks for package updates. Manually logging into every VPS daily is inefficient. This robust n8n workflow solves this problem by automating the entire process. Utilizing the powerful SSH n8n node, the automation connects to your server, executes the apt list --upgradable command, and processes the output. Crucially, the n8n workflow includes an If statement to only proceed with sending a notification email if actual updates are detected, preventing unnecessary daily notifications. This efficient n8n automation template ensures you are immediately notified about pending system patches, improving operational security and efficiency.
This server monitoring n8n workflow executes through a strict, linear flow:
apt list --upgradable command to retrieve a list of pending software updates.
).
.To set up this essential n8n workflow template, follow these steps:
[email protected] in both the "To Email" and "From Email" fields with your desired notification and sender addresses.This n8n workflow relies on several core n8n node types for its functionality:
Run workflow every day (Schedule Trigger n8n trigger):
Function: Serves as the primary n8n trigger, initiating the server check automatically based on a recurring daily schedule.
Key Configuration: Configured using a standard time interval rule for daily execution.
List upgradable packages (SSH n8n node):
Function: Connects to a remote server using SSH credentials to execute system maintenance commands.
Key Configuration: Command parameter is set to apt list --upgradable. Requires SSH Password credential setup.
Format as HTML list (Code n8n node):
Function: Custom scripting logic to parse the text output from the SSH node and convert the list of packages into a clean HTML unordered list (htmlList) suitable for email embedding.
Key Configuration: Custom JavaScript function designed to split the stdout and wrap lines in tags.
Check if there are updates (If n8n node):
Function: Provides core logic control. This n8n node determines if the workflow should continue to the email step.
Key Configuration: Condition checks if {{ $json.htmlList }} is not equal to .
Send Email through SMTP (EmailSend n8n node):
Function: Sends the notification email containing the list of available updates, utilizing the data processed earlier in the n8n workflow.
* Key Configuration: Uses an expression {{ $json.htmlList }} to embed the update list into the email body (HTML content). Requires SMTP credentials.
Use this custom n8n workflow to schedule and automatically send a beautifully formatted daily weather report directly to your email using the OpenWeatherMap API and the Gmail n8n node.

Use this custom n8n workflow to fetch daily weather data from OpenWeatherMap, apply sophisticated processing logic using a Code n8n node, and send rich, HTML-formatted forecasts and recommendations directly to your Telegram chat. Start building with n8n templates today.

Automate daily construction report distribution using an n8n workflow. Extract data from Google Sheets, filter for today's updates, and send multi-channel notifications via Email and WhatsApp.

Use this powerful n8n workflow to instantly convert Obsidian notes into professional emails via Gmail. Features attachment processing, YAML metadata parsing, and instant confirmation responses.

Use this advanced n8n workflow to send emails from custom Gmail aliases with optional attachments by directly interacting with the Gmail API. Essential for robust programmatic emailing.

Analyze Google Analytics data weekly using an n8n workflow. Extract page engagement, search console, and country data, utilize OpenRouter AI for SEO insights, and save reports to Baserow. Get started with n8n templates.

Hostinger aims to make online presence accessible to everyone worldwide – from developers to aspiring bloggers and business owners. With our fast hosting technology, AI-powered Website Builder, and easy-to-operate hPanel you can succeed online faster and easier.







































