Documentation · Integrations

cPanel/WHM integration

A small script on your WHM server reports its accounts and domains every ten minutes (or less often, your choice), and every site gets a monitor, added and removed as sites come and go.

PingWise keeps a monitor on every site hosted on a cPanel/WHM server. Unlike Enhance, the connection works by push: a small script on your server reports the list of accounts and domains to us, and we never hold a WHM credential.

Why push and not a token

A WHM API token is a root-level key. Even a token limited to List Accounts can act as every cPanel user through WHM's API, which we confirmed on a test server, so there is no truly read-only token to give us. Instead you run a script that only reads, on your server, and sends us its output.

Connecting

Integrations → Connect cPanel/WHM → Connect a WHM server. The page shows the install commands once, with a key for that server; we keep only a hash of the key. Paste the commands as root. They write three files:

  • /etc/pingwise-sync.conf, readable by root only, with our address and the key (as a curl config file, so the key never appears on a command line);
  • /usr/local/sbin/pingwise-sync, the script, shown in full on the page;
  • /etc/cron.d/pingwise-sync, which runs it every ten minutes, or at the pace you choose.

The script runs WHM's own read-only commands, whmapi1 listaccts and get_domain_info, and posts their output to PingWise. The first report waits on the integration page as Found on : N sites, with the monthly cost at each interval. Check every is the real interval of every site of the connection, existing and new: 5 minutes unless you pick another, from every hour down to every 10 seconds; a single monitor can still be changed on its own. Nothing is created until you press Import and keep in sync.

Without root: WHM resellers

A WHM reseller can connect the accounts they own without root. In Connect cPanel/WHM choose I'm a WHM reseller (no root). You need:

  • the reseller privileges List Accounts and Manage API Tokens, given by your hosting provider (WHM » Edit Reseller Nameservers and Privileges);
  • a shell in your own cPanel account (SSH or cPanel » Terminal) with crontab.

You create your own WHM API token with only List Accounts, limited to 127.0.0.1 and the server's IP, and paste our commands into your cPanel account's shell; the last step asks for the token. It stays on the server in ~/.pingwise/whm.conf (mode 600) and is never sent to us. A script in your crontab runs every ten minutes, reads WHM's listaccts and each account's domain list on 127.0.0.1, and sends the result with the server's key, as above. If any account's answer is refused or missing, the whole report is rejected, so a partial list never pauses sites. Everything else works as for root.

To remove it: disconnect the integration in PingWise (the page then shows these steps), delete the pingwise line with crontab -e, run rm -r ~/.pingwise, and revoke the token in WHM.

What becomes a monitor

  • One HTTPS monitor for each main domain, addon domain and real subdomain.
  • Parked domains (aliases) and the subdomain cPanel creates behind each addon domain are skipped.
  • A suspended account has its sites' monitors paused.
  • A domain that disappears is paused at once and removed 24 hours later, so a short-lived mistake does not throw away history.
  • Monitors are grouped by server, so an outage of one server produces one grouped alert, and the same safety brake as Enhance stops a report that would suddenly remove most of a server's sites.

You can rename a synced monitor, add notes, choose where its alerts go, pause it or change its check; the sync never undoes your pause, and a URL you edit stays yours. In a customer account, your customer can't change, pause or delete the check itself: that stays with you.

Leaving sites out

Delete a synced monitor and the sync won't add its site again. The integration's page lists these under Not monitored, with Include again to bring one back (the monitor is added at the next sync, with fresh history).

You can also add patterns under Skip new sites matching, one per line: * matches anything, so api.* skips api.example.com and *.example.com skips example.com and its subdomains. New sites that match are never added. Monitors that already exist and match are listed under the patterns, with a button to delete them, so you see exactly what goes before anything is deleted. A pattern that is only * isn't accepted.

Prefer to keep a site's history? Pause its monitor instead: it stays in the list, uses no credits, and the sync leaves it paused.

What we receive

cPanel usernames and their reseller owner, each account's main domain and its other domains, whether the account is suspended, and the server's hostname. WHM's domain listing also carries technical details of each domain; of these we keep only a short one-way fingerprint of the site's folder, never the path, to avoid monitoring the same site twice, and discard the rest (addresses, paths, software versions) on arrival. No contact details of your customers are read or sent.

How often it syncs

The script reports every ten minutes unless you choose otherwise: the install page has a Send the list choice (every 10 minutes, every hour, every 6 hours, every 12 hours or once a day), and the commands follow it. The same choice is under Sync on the integration's page; after changing it there, run the one line shown with it on the server, so the script's timer follows. Less often means a new site waits longer for its monitor, and a suspended or deleted site keeps being checked, and can alert, until the next report. Sync now applies the latest report at once.

When the server goes quiet

A server that stops reporting changes nothing: its monitors keep running as they are. After about 35 minutes without a report, the integration page says No report from the server since …. New key and install commands replaces the key; the old one stops working at once.

Customer accounts

As with Enhance, resellers can tick one box to give every cPanel user their own PingWise account, administered by you. See Monitoring for your customers.

Removing it

Disconnect the integration in PingWise: the server's key stops working at once, and the page then shows the command that removes the script. On the server run:

rm /etc/cron.d/pingwise-sync /usr/local/sbin/pingwise-sync /etc/pingwise-sync.conf

If your sites are behind Cloudflare or another firewall, see Blocked probes; the same applies here.

Last change: 14 November 2026.