Skip to content

Backup monitoring and alerting on cPanel — past "the email said it ran"

How to monitor cPanel backups in a way that catches silent failure: not just "the job ran" but "the job ran, the destination grew, the snapshot is restorable".

The default JetBackup monitoring sends an email when a job fails. That catches some failures. What it misses: jobs that “succeed” but write a zero-byte file, jobs that ran on the wrong destination, jobs that ran but excluded the only directory the customer cares about. Real monitoring goes past job-completion status into output verification.

What’s happening

JetBackup and R1Soft both expose success/failure status via API. They don’t natively expose “is the snapshot restorable” or “did the destination grow as expected” — those require external monitoring. The patterns that catch silent failures: tracking destination size over time, periodically test-restoring a sample, and alerting on the absence of a backup as much as on the failure of one.

How to verify

Survey current monitoring:

jetbackup5api -F getBackupJobs
jetbackup5api -F getQueueItems --filter status=COMPLETED | head
crontab -l | grep -i backup
ls /etc/cron.d/ | grep -i jetbackup

If the only thing receiving JetBackup events is the operator’s inbox, that’s not monitoring — that’s a notification.

The fix

  1. Track destination size as a metric. A 100 GB destination that grew 5 GB last week should grow roughly the same this week; sudden growth to 0 GB or stagnation flags a problem. Push this to Prometheus, Grafana, or whatever the team uses.
  2. Monitor “time since last successful backup” per job. Alert when it exceeds the expected interval plus 50% — that’s the threshold that catches a stuck job before the next scheduled run.
  3. Schedule a weekly automated restore test: pick an account at random, restore to a scratch server, run integrity checks, report success/failure. This is the only thing that catches “the backup ran but is unrestorable.”
  4. Wire JetBackup hooks to your alerting system. Slack, PagerDuty, or email-to-ticket — not just to a person’s mailbox. People go on vacation; the alerting channel shouldn’t.
  5. Quarterly review: are alerts actionable? An alert that fires but no one acts on is worse than no alert — it conditions the team to ignore. Tune thresholds based on what actually fires vs what’s noise.

Stack Harbor designs backup monitoring as part of environment management and the SLA we offer customers.