Astral 360 Astral Toolbox

Astral Toolbox — Documentation

A modular WHM plugin bundling server-side tools for cPanel/WHM administrators, with an extension store.

By Astral Internet inc. — a modular WHM plugin that bundles server-side tools for cPanel/WHM administrators.

Astral Toolbox — Options › Extensions

Astral Toolbox (formerly WHM Toolbox) is built around a small core (routing, authentication, templating, languages, notifications, a task scheduler, auto-update, activation, and an extension manager with its install console) and a set of self-contained extensions that each provide one feature. One extension ships with the core (bundled): Search Logs. The others are delivered through the remote Store, where some are reserved for servers with DEV access and some require a paid subscription. See Installation → Licence and DEV access.

The plugin appears in the WHM sidebar as Astral Toolbox and is served from /cgi/toolbox/toolbox.php (root-only, CSRF-protected). This documentation describes core 2.0.28 and the extension versions listed below.

Documentation index

Document Contents
Installation One-line install, installer options, licence and DEV access, DNSOnly support, scheduled jobs, updates, install console, uninstall
Core configuration (Options) The three Options tabs — Settings (General, Email & notifications), Extensions, Version —, the landing page, the language, notifications, and how to add or remove extensions
Search Logs Real-time tail, search and filter of server log files (including rotated .gz archives), and ready-made investigations (Common cases)
Mail Scanner SpamAssassin set up and tuned, spam sorted into each account's Junk folder or quarantine, a page in cPanel for each customer's history and quarantine, and the mail queue
Server Monitoring A watchdog that measures every minute without PHP and restarts Apache or MySQL, frees memory or disk when they fail; metrics and alerts, SSH login tracking, post-mortem snapshots, a nightly dnf check
Mail Disk Space Per-account mailbox usage tracking, per-package quotas, overrides, over-quota reports
Search And Replace Serialized-data-aware MySQL search & replace with dry-run, automatic backups and restore
Huge File Check Scheduled /home scans for oversized files & WordPress backups, cleanup actions, silence list, email reports

The interface

Every page of the plugin has the same frame:

  • At the top, the logo, the name Toolbox and its tagline. When a newer core is published, a New version available (X) line is added there.
  • On the left, the sidebar: the Extensions group lists the enabled extensions, in this order: Search Logs, Mail Scanner, Server Monitoring, Mail Disk Space, Search And Replace, Huge File Check. Below a rule, Options opens the core configuration. The foot of the sidebar shows the core version (v2.0.28) and, when an update exists, an Update to X button and a More options link to Options → Version.
  • In the middle, the extension's page, with its tabs.

There is no home page any more. Since core 2.0.26 the tile dashboard is gone: clicking the plugin in the WHM sidebar opens the landing page chosen in Options → Settings → General → Landing page. By default it is Search Logs, the free extension bundled with the core; a technician can pick another enabled extension (Server Monitoring on a server that has it, for example). If the chosen extension is no longer enabled, the plugin opens Search Logs, else the first enabled extension, else Options → Extensions. Old links to the home page (?action=home) land in the same place.

Languages. The interface, e-mails and reports are in English or French: Options → Settings → General → Language. In Automatic (the default) the plugin follows the WHM language of the admin viewing the page; e-mails sent by scheduled jobs follow root's. The installer and the logs stay in English.

Extensions at a glance

Extension Version Distribution Purpose
Search Logs 2.3.2 Bundled with core Tail, search and filter server log files in real time; ready-made investigations of common cases
Mail Scanner 0.5.1 Store, paid Spam sorted into each account's Junk folder or quarantine, with a customer page in cPanel; outgoing spam warned or held
Server Monitoring 3.0.0 Store, paid A watchdog that acts (restarts, purges) + CPU/load/memory/disk/Apache/Nginx/MySQL metrics with alerting and snapshots, SSH login tracking, a nightly dnf check
Mail Disk Space 2.1.3 Store, free Email storage usage per account with quota reports
Search And Replace 2.1.1 Store, DEV access required Safe MySQL string/domain replacement with backups
Huge File Check 2.1.1 Store, paid Scan /home for oversized files and stale backups

The Store says, for each extension, whether it is free, paid (with a trial or a purchase link) or DEV-only: Options → Extensions → Available in the Store.

Architecture quick reference

Component Path
Plugin root /usr/local/cpanel/whostmgr/docroot/cgi/toolbox/
Entry point toolbox.php (single CGI entry, all requests)
Core classes core/ (Kernel, Notifier, ExtensionManager, ExtensionStore, Scheduler, I18n, Update, …)
Interface texts lang/english.php and lang/french.php (core), extensions/<slug>/lang/ (each extension)
Extensions extensions/<slug>/ (each with its own manifest.php)
Core state var/state.json (enabled extensions, landing page, language, auto-update flag, update channel)
Activation core/Activation.php and the vendored SDK core/lib/ActivationClient.php
Licence token /var/cpanel/toolbox/activation.json (0600, outside the plugin directory)
Notification config var/notifications.json (0600 — contains SMTP credentials)
Task scheduler /etc/cron.d/toolbox-scheduler (every minute) → cron/scheduler.php, log /var/log/toolbox-scheduler.log
Auto-update cron /etc/cron.d/toolbox-auto-update (every 4 h, randomized minute)
WHM registration AppConfig install/toolbox.conf → /var/cpanel/apps/toolbox.conf

Extensions no longer write cron files of their own: their jobs (a scan, a collection, a clean-up) go through the core's scheduler. The uninstaller removes the /etc/cron.d/toolbox-* files that name the plugin's folder, and leaves another tool's.

Security model

  • Root-only: the plugin runs as root under WHM (whostmgr); every request is authenticated by cpsrvd.
  • CSRF: every state-changing POST requires a valid _csrf token.
  • Download integrity: the installer downloads the activation SDK pinned by SHA-256; the installer and the auto-updater accept only a release manifest with a valid RSA signature, checked with the key pinned for the channel, and verify each archive listed in that manifest (core and extensions) against its SHA-256 before extraction; the auto-updater, the Store and the installer's extension step also validate ZIP contents against path traversal. Release files are served only through download grants to an enrolled server.
  • Private files: state, notification config (including the SMTP password) and scan data are written 0600/0700, root-only.