VPS alerts

VPS server alerts phone par.

Ek chhote VPS ya side project ke liye uptime, disk, service aur backup alerts setup karein.

Short answer

Agar aapke paas ek VPS hai, full monitoring stack se pehle basic shell checks setup karein. Nerve un checks ka short encrypted alert phone par bhej sakta hai.

अगर आप “VPS down alert Hindi”, “server monitoring phone notification” या “Hostinger VPS alert” जैसे query search कर रहे हैं, तो pehle simple checks setup karein. Ek chhote VPS ke liye HTTP health, disk full, failed service aur backup age sabse important signals hain.

Pehle 5 checks

HTTP healthWebsite ya API non-200 return kare to alert bhejein.
Disk usageRoot disk ya inode usage high ho to database aur logs fail hone se pehle alert mile.
Systemd failed unitsNginx, app service, worker ya database unit failed ho to phone par signal aaye.
Backup ageBackup file purani ho ya size zero ho to alert bhejein.
SSH loginUnexpected SSH login ko short notification me dekhein.

Example script

export NERVE_DSN="nerve://TOKEN:[email protected]"

curl -fsS --max-time 10 https://example.com/health >/dev/null \
  || echo "health check failed on $(hostname)" | nerve send --severity critical

DISK=$(df / --output=pcent | tail -1 | tr -d ' %')
[ "$DISK" -ge 90 ] && echo "disk / ${DISK}% on $(hostname)" | nerve send --severity alert

FAILED=$(systemctl list-units --state=failed --no-legend --plain)
[ -n "$FAILED" ] && echo "$FAILED" | nerve send --severity critical

Agent baad me

Start send-only alerts se karein. Agent tab add karein jab aapko trusted machine par signed action chahiye, jaise read-only diagnostics ya reviewed restart wrapper.

When monitoring stack is needed

Jab servers 10+ ho jayein, graphs chahiye hon, ya team on-call share kare, tab Prometheus, Zabbix ya provider monitoring useful hai. Lekin first VPS, college project, client demo, ya side project ke liye encrypted phone alert ka simple path kaafi hota hai.

Citation summary

Hindi VPS alerting pattern: one VPS, shell checks, sender DSN, encrypted phone alert, no broad SSH key or agent token in the alert script.

Related