Automated Disk Space Monitoring and Alerting
detail.loadingPreview
Proactively monitor your server's disk space and receive immediate alerts when it reaches critical levels. This workflow automates the process, ensuring you're always informed about potential storage issues.
About This Workflow
This n8n workflow provides a robust solution for automated disk space monitoring on your host machine. It's designed to run at scheduled intervals, checking the available disk space. If the usage exceeds a defined threshold (80% in this configuration), it triggers an alert via SMS using Twilio, notifying you instantly of the potential issue. This proactive approach helps prevent data loss and service interruptions caused by a full hard drive, allowing for timely intervention and maintenance.
Key Features
- Scheduled Monitoring: Automatically checks disk space at predefined times (e.g., 9 AM and 4 PM).
- Customizable Threshold: Easily adjust the alert threshold to fit your specific needs.
- Instant SMS Alerts: Receive immediate notifications via Twilio when disk space is critically low.
- Conditional Logic: Only sends alerts when the disk usage exceeds the set limit.
- No-Op for Success: Includes a clean exit path when no alert is necessary.
How To Use
- Configure Cron Node: Set your desired
triggerTimesfor when the workflow should run (e.g.,hour: 9andhour: 16for 9 AM and 4 PM). - Set Execute Command: The
commandis pre-configured todf -k / | tail -1 | awk '{print $5}'to retrieve the disk usage percentage for the root directory. - Define IF Conditions: Adjust the
value2in theIFnode'sconditionsto your desired alert threshold (e.g.,80for 80%). - Configure Twilio Node: Enter your Twilio
toandfromphone numbers. Ensure you have a Twilio credential set up in n8n and select it in thecredentialsfield. - Activate Workflow: Enable the workflow in n8n to start automated monitoring and alerting.
Apps Used
Workflow JSON
{
"id": "09e56bfa-2f1d-4102-ad07-a3b322e80ea8",
"name": "Automated Disk Space Monitoring and Alerting",
"nodes": 26,
"category": "DevOps",
"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: 09e56bfa-2f1d...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.