A lightweight Bash script designed for Ubuntu VPS to monitor disk space hourly. If disk usage exceeds the defined threshold, it automatically triggers Docker cache eviction, removes stopped containers, rotates system logs, and sends instant status alerts directly to Telegram.
- Proactive Monitoring: Runs quietly every hour via cron.
- Telegram Alerts: Sends instant notifications using your custom
tg_sayutility. - Docker Optimization: Seamlessly calls your user-defined
~/.bashrcaliases (docker_clean_cache,docker_clean_exited) under theubuntuuser scope. - Log Rotation: Safely vacuums
journaldlogs down to 50MB and removes archived log files (*.gz,*.1) from/var/log.