Automated Server Package Update Notifications
detail.loadingPreview
Checks for upgradable packages on a server daily and sends an email notification if updates are available.
About This Workflow
This workflow automates the process of checking for available package updates on a server. It connects to the server via SSH, lists upgradable packages, formats the output into an HTML list, and then conditionally sends an email notification if any updates are found. This ensures timely awareness of necessary system maintenance.
Key Features
- Scheduled Checks: Runs automatically every day.
- SSH Connectivity: Connects to the server using SSH credentials to execute commands.
- Package Update Detection: Utilizes
apt list --upgradableto identify packages that can be updated. - Formatted Notifications: Converts raw command output into a clean HTML list for email readability.
- Conditional Emailing: Only sends an email if there are actual updates available, preventing unnecessary notifications.
- Configurable Email: Allows customization of sender, recipient, and subject line.
How To Use
- Configure SSH Credentials: In the
List upgradable packagesnode, ensure your SSH credentials (SSH Password account) are correctly set up. - Define SSH Command: The
List upgradable packagesnode is pre-configured withapt list --upgradable. This might need adjustment for non-Debian/Ubuntu systems. - Customize Email Settings: In the
Send Email through SMTPnode, update thetoEmailandfromEmailparameters with your desired addresses. Configure your SMTP credentials (SMTP account) as well. - Set Schedule: The
Run workflow every daynode is set to run daily. Adjust therule.intervalif you need a different schedule. - Review Logic: The
Check if there are updatesnode ensures emails are only sent when<ul></ul>is not the sole content, meaning there are actual updates listed. TheFormat as HTML listnode processes the SSH output. - Run: The workflow will execute based on the schedule.
Apps Used
Workflow JSON
{
"id": "4cebf3c2-fdf4-40b0-a22f-c93747db8716",
"name": "Automated Server Package Update Notifications",
"nodes": 19,
"category": "Monitoring",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 4cebf3c2-fdf4...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Get SSL Certificate Status and Notify on Expiry
Checks the SSL certificate validity for a given domain and sends an alert if it has expired.
Error Notification Workflow
Sends an email notification when any workflow encounters an error.
Automated Error Notification Workflow
Automatically notifies you via various channels when any of your n8n workflows encounter an error.