Services and products mentioned in this article.
Get in touch with our expert team for professional cloud architecture and operations support.
Kaihu Cloud TeamInfrastructure Operations Team
Kaihu Cloud Team runs day-2 operations for production servers, turning incident lessons into checklists, scripts and automated guards.
All factual claims are cross-referenced against authoritative sources before publication. Data comes from verified primary references.
Daily: disk, CPU, memory, error logs and failed services — with fixed alert thresholds.
Weekly and monthly: backup verification, log rotation, patching and access audits prevent the biggest delayed failures.
Automate the checks you already know by heart; schedule work in low-traffic windows with a rollback plan.
Five daily checks cover the health basics: disk space (df -h, alert above 85 percent), CPU load (uptime, alert when load exceeds the core count), memory (free -h, alert when available drops below 10 percent), error logs (journalctl -p err --since today), and failed services (systemctl --failed).
Daily checks work because they catch slow-moving problems before they become outages: disks fill gradually, memory leaks accumulate over hours, and failed services often go unnoticed because the rest of the system keeps running. Checking at a fixed time each day turns maintenance from firefighting into routine.
A practical daily routine takes under five minutes: run df -h and uptime first, scan the day error output from journalctl, then systemctl --failed. Anything crossing a threshold triggers investigation the same day instead of waiting for a weekend crash.
Reference thresholds from the checklist: disk usage above 85 percent, load average above the number of cores, available memory below 10 percent (the automation script uses 512MB), any new error entries, and any failed service count greater than zero.
Daily checks catch symptoms, but weekly and monthly tasks address the failure modes that sneak up over weeks: expired backups nobody tested, certificates nobody renewed, and SSH keys of employees who left months ago.
Three factors decide how much these delayed tasks matter: backup success rate (a backup is only real if a restore was tested), the patch gap (how many days the system has been exposed to known CVEs), and credential lifetime (how long stale accounts and keys stay valid).
| Cadence | Tasks | Risk Prevented |
|---|---|---|
| Weekly | Review updates, rotate logs, verify backups and test a restore, check SSL certificates | Data loss, expired certificates |
| Monthly | Apply security patches, audit SSH keys and user access, clean old data, review resource trends | Known-CVE exploitation, capacity surprises |
| Daily | Disk, CPU, memory, error logs, failed services | Imminent outages |
Weekly is for verification (backups, certificates, pending updates); monthly is for action (patching, access cleanup, capacity planning). Never skip the restore test — an unverified backup is indistinguishable from no backup.
Manual checks fail because they depend on memory and mood. The fix is small automation: a bash script that reads the same thresholds (85 percent disk, 512MB memory, any failed services) and prints warnings, suitable for a cron job or a CI health gate.
The three most common mistakes: backups that complete but were never restored to verify, security patches applied directly to production without a staging pass, and log rotation left unchecked until the disk fills with uncompressed logs.
#!/bin/bash
# Disk usage alert
USAGE=$(df / | tail -1 | awk '{print $5}' | sed 's/%//')
if [ "$USAGE" -gt 85 ]; then
echo "WARNING: Root disk usage at ${USAGE}%"
fi
# Memory check
free_mem=$(free | awk '/Mem/{printf "%.0f", $7/1024}')
if [ "$free_mem" -lt 512 ]; then
echo "WARNING: Low available memory: ${free_mem}MB"
fi
# Failed services
FAILED=$(systemctl --failed --no-legend | wc -l)
if [ "$FAILED" -gt 0 ]; then
echo "ALERT: $FAILED failed services detected"
systemctl --failed
fiFor patching, the safe sequence is: apt update and apt list --upgradable (or yum check-update) to review, upgrade in staging, then apply during a maintenance window; verify with uname -r that the running kernel matches the installed one.
Schedule the checklist by cadence: daily checks as a cron job at a fixed morning time, weekly reviews before the weekend, and monthly patching inside a low-traffic maintenance window with a rollback plan ready. Resource trend review closes the loop by feeding capacity planning.
Always apply patches in staging first and keep the window in low-traffic periods; automate anything that is a pure read-and-alert check, but keep destructive actions (patching, account removal) manual and reviewed.
Single server: the daily script plus weekly backup test covers most needs. Small cluster: run the same script fleet-wide and centralize alert output. Regulated environments: add monthly access audits and document each maintenance window with its rollback plan.
Get in touch with our expert team for professional cloud architecture and operations support.