procwatch

ProcWatch (cPanel/WHM Plugin)

ProcWatch is a lightweight, process-aware server snapshot page designed to run inside WHM (cPanel). It shows, in a single screen:

This repository is intentionally simple:

Scope: WHM (root / reseller). Not intended for end-user cPanel accounts.

🚀 Live preview: https://afbora.github.io/procwatch/preview.html

preview


Requirements

Supported platforms

This plugin targets cPanel-supported Linux distributions (Linux only).
It relies on standard Linux interfaces and tools:

Privileges

Optional assumptions


What gets installed (files)

The installer copies files to:

No services are started. No cron jobs are created.


Install

git clone https://github.com/afbora/procwatch.git \
  && cd procwatch \
  && sudo bash adapters/whm/install.sh

Manual install (step-by-step)

git clone https://github.com/afbora/procwatch.git
cd procwatch

# Review installer + what will be installed
sed -n '1,200p' adapters/whm/install.sh
sed -n '1,120p' adapters/whm/appconfig/procwatch.conf

# Install
sudo bash adapters/whm/install.sh

After install:

Uninstall

Quick uninstall

cd /root/procwatch
sudo bash adapters/whm/uninstall.sh

Manual uninstall (step-by-step)

cd /root/procwatch

# Review uninstaller
sed -n '1,200p' adapters/whm/uninstall.sh

# Uninstall
sudo bash adapters/whm/uninstall.sh

How it works

Data collection

The CGI script produces a JSON snapshot on demand. To keep it fast, it writes a cached snapshot to:

Cache TTL is short (default 5 seconds). The UI refreshes every 5 seconds.

Account & pool attribution

The dashboard shows:


Security notes


License

MIT — see LICENSE.

Safety & resource usage

ProcWatch is designed to be safe to run on busy servers:

If timeout is not available on your system, ProcWatch falls back to best-effort execution (still cached + low priority).

Access control (ACL)

By default, ProcWatch is root-only in WHM.

This is enforced via the AppConfig setting:

acls=all

In WHM, all effectively means root only, because only the root user has all privileges. Resellers and delegated WHM users will not see the plugin.

If you explicitly want resellers or delegated users to access ProcWatch, you may relax this setting:

acls=any

After changing the ACL, re-register the plugin:

/usr/local/cpanel/bin/register_appconfig adapters/whm/appconfig/procwatch.conf

⚠️ ProcWatch exposes server-wide process and resource information.
Making it visible to non-root users is not recommended.