Execute a Command to Retrieve Hard Disk Usage on the Host Machine
This workflow regularly monitors the disk usage of the host and automatically executes system commands to obtain the current disk space status. When the usage exceeds the preset threshold of 80%, it immediately sends an alert notification via the Twilio SMS service, helping users stay informed about the disk status and preventing system failures due to insufficient space. It is suitable for operations and IT administrators to improve maintenance efficiency and reduce risks, ensuring stable system operation.

Workflow Name
Execute a Command to Retrieve Hard Disk Usage on the Host Machine
Key Features and Highlights
This workflow periodically executes system commands to automatically obtain the host machine's hard disk usage. It evaluates the usage against predefined thresholds to determine whether to send alert SMS notifications. Leveraging Twilio's SMS service for instant alerts, it enables users to promptly monitor disk space status and prevent system failures caused by insufficient storage.
Core Problem Addressed
Monitors server or host hard disk usage to prevent disk space exhaustion that could impact system operation or data storage. By automating checks and alerts, it reduces manual monitoring efforts and associated risks.
Application Scenarios
- Routine monitoring of server disk space by operations personnel
- IT administrators preventing disk capacity bottlenecks
- Automated infrastructure monitoring and alerting systems
Main Workflow Steps
- Scheduled Trigger (Cron Node): Automatically initiates the monitoring process daily at 9:00 AM and 4:00 PM.
- Execute Command (Execute Command Node): Runs the Linux command
df -k / | tail -1 | awk '{print $5}'
to retrieve the root partition’s disk usage percentage. - Conditional Check (IF Node): Determines if disk usage exceeds 80%.
- Alert Dispatch (Twilio Node): If the threshold is exceeded, sends an SMS alert to a specified phone number via Twilio.
- No Operation Branch (NoOp Node): If disk usage is within limits, no action is taken and the workflow ends.
Involved Systems or Services
- Linux command-line tools (df, awk)
- Cron scheduler
- Twilio SMS service
Target Users and Value Proposition
Ideal for system administrators, operations engineers, and IT support staff. This workflow facilitates automated monitoring and alerting of disk space usage, enhancing maintenance efficiency, reducing risks from unexpected disk shortages, and ensuring stable server operation.