Skip to content

Centralized monitoring for a cPanel fleet — the design principles

How to design a monitoring stack that sees the whole cPanel fleet without drowning operators in noise, and which signals deserve real alerting.

cPanel ships with a useful per-host dashboard but no fleet view. Operators with more than a handful of hosts end up either logging into each WHM in rotation or building a central monitoring layer. The latter is the right answer past three hosts. The hard part isn’t building it — it’s deciding which signals are worth waking someone up for.

The trade-off

Per-host monitoring (the cPanel default) gives you depth but not breadth. You can see the LVE faults on one host; you can’t see “which host has the worst fault rate this week” without manually comparing.

Centralized monitoring gives breadth and correlation across the fleet, but adds infrastructure (Prometheus + Grafana + Alertmanager, or a hosted equivalent), and the design discipline to avoid alert fatigue.

How to decide — the signal-to-alert pipeline

  1. Collect everything cheap. Node exporter, mysql_exporter, exim_exporter, custom cPanel exporters (LVE state, account count, queue depth) — collect at scrape intervals appropriate to volatility (15s for resource counters, 5m for account count).
  2. Visualize most of it. Grafana dashboards per host, per fleet, per customer. Operators use these for trend analysis and capacity reviews, not for alerting.
  3. Alert on a much smaller subset. Three tiers:
    • Page (wake someone): host down, disk above 90%, MySQL replication broken, mail queue stuck for >15m, backup hasn’t completed in 36h.
    • Ticket (track but don’t page): LVE fault rate above threshold for 2h, certificate expiring in 7 days, MaxRequestWorkers above 80% sustained.
    • Dashboard only: everything else. Available when you look, no notification.
  4. Burn rate, not threshold crossings. “Disk used 80%” isn’t an alert; “disk grew 5GB in the last hour, at this rate it’ll be full in 4 hours” is.

What to do

  1. Build the monitoring stack independent of cPanel. The destination must survive a cPanel host going down.
  2. Standardize the agent set across the fleet. Node exporter + a small set of custom exporters, deployed via configuration management.
  3. Define alert rules in code (Prometheus rules, alerting yaml). UI-clicked alerts drift; code-defined alerts can be reviewed in PR.
  4. Set the page-vs-ticket-vs-dashboard tier explicitly per alert. Every alert needs a runbook link and a defined severity.
  5. Run a monthly alert review. Alerts that fire more than 4 times a month and don’t lead to action should be tuned or deleted.
  6. Connect to escalation only when ready. A noisy alerting setup paged to a real human is how operators stop reading alerts.

For an example of the actionable-alert pattern, see actionable HTTP latency alerts. Stack Harbor designs and operates the central monitoring stack across managed fleets under cPanel/WHM management.