Skip to content

gemini2463/imh-snap-stat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapStat (imh-snap-stat), v0.2.1

sys-snap and sysstat Web Interface for cPanel/WHM and CWP

Demo Video Demo Video on YouTube

  • 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

Screenshot

Installation

  • Run as the Root user: curl -fsSL https://raw.githubusercontent.com/gemini2463/imh-snap-stat/master/install.sh | bash

Interquartile range

Files

Shell installer

  • install.sh

Main script

  • 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

Javascript

  • 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

Icon

  • imh-snap-stat.png - 48x48 png image
  • imh-snap-stat.png.sha256 - sha256sum imh-snap-stat.png > imh-snap-stat.png.sha256

cPanel conf

CWP include

  • imh-plugins.php - CWP include
  • imh-plugins.php.sha256 - sha256sum imh-plugins.php > imh-plugins.php.sha256

sha256 one-liner

  • 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

Changelog

v0.1.6 - Release

  • Release

v0.1.7

  • Fix for some newer OS's that use a new format to store sysstat logs.

v0.1.8

  • 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 0600 cache 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.

v0.1.9

  • 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.

v0.2.0

  • Fix for determineSarLogPath() edge cases when /var/log/sa stale files exist.

v0.2.1

  • 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).

v0.2.2

  • Numerous fixes, compatiblity for Ubuntu

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors