Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Track VPS uptime on Ubuntu with Bash tools—run
uptime
to see runtime (e g \"up 5 days 12:34\") load averages (expect <1 0 for a 1-core VPS) and user count For continuous monitoring create a script:
#!/bin/bash\nwhile true; do uptime >> /var/log/uptime.log; sleep 3600; done
save as monitor sh make executable with
chmod +x monitor.sh
and run with
./monitor.sh &
Check logs with
tail -n 10 /var/log/uptime.log
Open UFW for SSH (ufw allow 22) to ensure remote access On DigitalOcean this helps verify 99 99% uptime claims alerting you to reboots impacting MySQL or FTP services

Back to All Tips