This n8n workflow monitors email alerts for disk utilization exceeding 80%, extracts the server IP, logs into the server, and purges logs from Nginx, PM2, Docker, and system files to clear disk space. Key Insights - Ensure email alerts are consistently formatted with server IP details. - SSH access must be properly configured to avoid authentication failures. Workflow Process 1. Initiate the workflow with the Check Disk Alert Emails node when an email triggers on high disk usage. 2. Parse the

This n8n workflow monitors email alerts for disk utilization exceeding 80%, extracts the server IP, logs into the server, and purges logs from Nginx, PM2, Docker, and system files to clear disk space. Key Insights - Ensure email alerts are consistently formatted with server IP details. - SSH access must be properly configured to avoid authentication failures. Workflow Process 1. Initiate the workflow with the Check Disk Alert Emails node when an email triggers on high disk usage. 2. Parse the email to extract the server IP using the Extract Server IP from Email node. 3. Set up SSH credentials and paths manually with the Prepare SSH Variables node. 4. Execute cleanup commands to delete logs from Nginx, PM2, Docker, and system files using the Run LogCleanup Commands via SSH node. Usage Guide - Import the workflow into n8n and configure email and SSH credentials. - Test with a sample email alert to verify IP extraction and log deletion. Prerequisites - Email service (e.g., IMAP or API) for alert monitoring - SSH access with valid credentials Customization Options Modify the Prepare SSH Variables node to target specific log directories or adjust cleanup commands for different server setups.
Download the workflow JSON file after purchase.
Open n8n → click the menu → Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.