sys-snap and sysstat Web Interface for cPanel/WHM and CWP
- cPanel/WHM path:
/usr/local/cpanel/whostmgr/docroot/cgi/imh-snap-stat/index.php - CWP path:
/usr/local/cwpsrv/htdocs/resources/admin/modules/imh-snap-stat.php
- Run as the Root user:
curl -fsSL https://raw.githubusercontent.com/gemini2463/imh-snap-stat/master/install.sh | bash
- install.sh
- index.php - Identical to
imh-snap-stat.php. - index.php.sha256 -
sha256sum index.php > index.php.sha256 - imh-snap-stat.php - Identical to
index.php. - imh-snap-stat.php.sha256 -
sha256sum imh-snap-stat.php > imh-snap-stat.php.sha256
- imh-snap-stat.js - Bundle React or any other javascript in this file.
- imh-snap-stat.js.sha256 -
sha256sum imh-snap-stat.js > imh-snap-stat.js.sha256
- imh-snap-stat.png - 48x48 png image
- imh-snap-stat.png.sha256 -
sha256sum imh-snap-stat.png > imh-snap-stat.png.sha256
- imh-snap-stat.conf - AppConfig Configuration File
- imh-snap-stat.conf.sha256 -
sha256sum imh-snap-stat.conf > imh-snap-stat.conf.sha256
- imh-plugins.php - CWP include
- imh-plugins.php.sha256 -
sha256sum imh-plugins.php > imh-plugins.php.sha256
for file in index.php imh-plugins.php imh-snap-stat.conf imh-snap-stat.js imh-snap-stat.php imh-snap-stat.png; do sha256sum "$file" > "$file.sha256"; done
- Release
- Fix for some newer OS's that use a new format to store sysstat logs.
- Fixed error handling of time-range inputs that fail to return sys-snap output.
- "Scores from..." now shows the actual time-range, specifically when sys-snap has been running for less than 24 hours.
- "Scores from..." now shows the local time zone.
- Added step to
chmod 0600cache files when created. - Implemented statistical outlier detection (IQR method) for all numeric columns in the sar data table. Cells with statistically and operationally significant values are now automatically highlighted.
/opt/imh-sys-snap/bin/path to the sys-snap.pl file is no longer hard-coded; it now checks other possible paths.- Fixed caching functions to prevent path traversals and race conditions.
- Set the IMH-installed sys-snap.pl path as default instead of cPanel's /root/sys-snap.pl path.
- Install script CWP 3rdparty.php fixes for a double-insertion bug.
- Fix for determineSarLogPath() edge cases when /var/log/sa stale files exist.
- Fix for fatal errors when sys-snap reports numeric UIDs by normalizing user labels and using stable placeholder names for unresolved accounts (PHP 5/7 compatible).
- Numerous fixes, compatiblity for Ubuntu


