From 6602bb6c0b94d26116995d1046ff4fa156661fd9 Mon Sep 17 00:00:00 2001 From: cschantz Date: Thu, 11 Dec 2025 16:50:40 -0500 Subject: [PATCH] Further condense README - remove excessive verbosity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - System Diagnostics & Performance section: 19 lines → 7 lines - Removed detailed sub-bullets for Loadwatch and PHP Optimizer - Condensed to clean feature list - Recent Updates section: 74 lines → 11 lines - Removed excessive checkmarks and detailed breakdowns - Condensed to key highlights and current feature count - Directory structure: Removed duplicate diagnostics/ entry - Fixed "Website Diagnostics & Troubleshooting" → "Website Diagnostics" Before: 292 lines total After: ~210 lines (28% reduction from previous version) README is now concise and scannable without losing essential info. --- README.md | 121 ++++++++++-------------------------------------------- 1 file changed, 22 insertions(+), 99 deletions(-) diff --git a/README.md b/README.md index 173e991..ebb9cc0 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,9 @@ server-toolkit/ │ │ │ ├── diagnostics/ # 🔍 System Diagnostics │ │ ├── system-health-check.sh # Comprehensive health analysis -│ │ └── loadwatch-analyzer.sh # System health from loadwatch monitoring logs +│ │ └── loadwatch-analyzer.sh # Historical system health analysis │ │ -│ ├── security/ # 🛡️ Security & Threat Analysis +│ ├── security/ # 🛡️ Security & Monitoring │ │ ├── bot-analyzer.sh # Full bot/threat analysis │ │ ├── live-attack-monitor.sh # Real-time attack monitoring dashboard │ │ ├── ssh-attack-monitor.sh # SSH brute force detection @@ -29,13 +29,10 @@ server-toolkit/ │ │ ├── acronis-*.sh # Acronis Cyber Protect (9 management scripts) │ │ └── mysql-restore-to-sql.sh # MySQL/MariaDB database restore & dump tool │ │ -│ ├── website/ # 🌐 Website Diagnostics & Troubleshooting -│ │ ├── website-error-analyzer.sh # Comprehensive website error analysis -│ │ └── 500-error-tracker.sh # Track and analyze 500 errors -│ │ -│ ├── diagnostics/ # 🔍 System Diagnostics & Log Analysis -│ │ ├── system-health-check.sh # Comprehensive health analysis -│ │ └── loadwatch-analyzer.sh # System health monitoring from loadwatch logs +│ ├── website/ # 🌐 Website Diagnostics +│ │ ├── website-error-analyzer.sh # Comprehensive error analysis +│ │ ├── 500-error-tracker.sh # Fast 500 error tracking +│ │ └── wordpress/ # WordPress tools │ │ │ ├── performance/ # 📊 Performance Analysis │ │ ├── hardware-health-check.sh # Hardware diagnostics @@ -109,24 +106,13 @@ source /root/linux-server-management-toolkit/run.sh - **Log Integration**: Apache, PHP-FPM, cPanel error log analysis - **Smart Recommendations**: Context-aware suggestions for fixing issues -### 🔍 System Diagnostics & Performance Monitoring -- **Comprehensive Health Checks**: Hardware, services, security posture -- **Loadwatch Health Analyzer**: Historical system health analysis from monitoring logs - - Time-range analysis: 1h, 6h, 24h, 7d, 30d - - Memory pressure detection and swap usage trending - - CPU saturation analysis (idle, iowait, steal time) - - Process issue detection (zombies, high CPU/MEM consumers) - - MySQL performance monitoring - - Actionable recommendations based on findings -- **PHP Configuration Optimizer** (NEW!): Per-domain PHP optimization - - Analyzes PHP-FPM pool configurations across all domains - - Detects max_children issues from 7-day error log history - - OPcache hit rate analysis and tuning recommendations - - Memory limit optimization based on actual usage - - Auto-backup before changes with rollback capability - - Graceful PHP-FPM reload for zero downtime - - Supports cPanel, InterWorx, Plesk, standalone Apache -- **Smart Recommendations**: Context-aware suggestions based on findings +### 🔍 Performance & Diagnostics +- **System Health Check**: Comprehensive hardware, services, and security posture analysis +- **Loadwatch Analyzer**: Historical system health analysis (1h/6h/24h/7d/30d time ranges) +- **MySQL Query Analyzer**: Slow query detection and optimization recommendations +- **Network & Bandwidth Analyzer**: Traffic analysis and top consumers +- **Hardware Health Check**: SMART, memory, CPU sensors +- **PHP Configuration Optimizer**: Per-domain PHP-FPM tuning with auto-backup and zero downtime - **Multi-Panel Support**: cPanel, InterWorx, Plesk, standalone Apache ### 📊 Session Intelligence @@ -207,79 +193,16 @@ nano /root/server-toolkit/config/settings.conf ## 📊 Recent Updates (v2.1) -### December 2025 - Major Cleanup & Optimization +### December 2025 Highlights +- **Launcher Cleanup**: Removed 90+ phantom menu items, reduced from 1,576 to 574 lines (64% reduction) +- **Performance**: Cached domain status checks save ~5 minutes on 50-domain servers +- **MySQL Restore Tool**: Advanced database recovery with intelligent Force Recovery detection +- **Multi-Panel**: Full support for cPanel, InterWorx, Plesk, standalone Apache -#### Launcher Streamlined (NEW!) -- ✅ Removed 90+ phantom menu items pointing to non-existent scripts -- ✅ Reduced from 1,576 lines to 574 lines (64% reduction) -- ✅ Cleaned up 7-level nested menus to 3 levels maximum -- ✅ Every menu item now points to a real, working script -- ✅ Faster navigation and no more "module not found" errors -- ✅ Main menu: 6 categories, 41 total working options - -#### Performance Optimizations -- ✅ Bot analyzer now uses cached domain status (eliminates redundant HTTP checks) -- ✅ Saves ~5 minutes on 50-domain servers (no more curl requests per check) -- ✅ All modules use centralized reference database for domain status -- ✅ 1-hour cache prevents wasteful re-checking - -#### MySQL/MariaDB Database Restore Tool -- ✅ Advanced database recovery from file-based backups -- ✅ Multi-control panel support (cPanel, InterWorx, Plesk, standalone) -- ✅ Intelligent Force Recovery with smart detection -- ✅ Safe selective restore (single DB from full backup, zero data loss) -- ✅ InterWorx path fix (/chroot/home instead of /home symlink) -- ✅ SQL output saved to restore directory parent (not control panel dirs) -- ✅ Safety features: disk space validation, directory protection, recovery warnings - -#### Documentation Updates -- ✅ Main README updated with streamlined menu structure -- ✅ New modules/backup/README.md (comprehensive backup tools documentation) -- ✅ Updated usage examples to match new launcher -- ✅ All recent features documented - -### Multi-Control Panel Support -- ✅ Full cPanel support (primary platform - production ready) -- ✅ InterWorx support (validated on real servers - production ready) -- ✅ Plesk support (validated on real servers - production ready) -- ✅ Standalone Apache support (basic functionality) -- ✅ 41 modules refactored for multi-panel architecture -- ✅ All critical paths verified on production systems - -### Core Features Implemented - -**Security & Monitoring (14 tools)** -- Bot & Traffic Analyzer (full + quick scan) -- Live Attack Monitor + 3 specialized monitors -- IP Reputation Manager -- Malware Scanner -- 4x Log tail viewers -- cPHulk enablement -- CT_LIMIT optimization - -**Website Diagnostics (3 tools)** -- Website Error Analyzer -- Fast 500 Error Tracker -- WordPress Tools (WP-Cron manager) - -**Performance Analysis (5 tools)** -- MySQL Query Analyzer -- Network & Bandwidth Analyzer -- Hardware Health Check -- PHP Configuration Optimizer -- Loadwatch Health Analyzer - -**Backup & Recovery (11 tools)** -- Complete Acronis Cyber Protect integration (9 scripts) -- MySQL/MariaDB database restore -- Cleanup toolkit data - -### System Infrastructure -- ✅ Reference database for cross-module intelligence (.sysref with 1-hour cache) -- ✅ Automatic control panel detection (system-detect.sh) -- ✅ Multi-panel user/domain management (user-manager.sh) -- ✅ Cached domain status checks (eliminates redundant HTTP requests) -- ✅ Zero hardcoded paths - all detection-based +### Current Feature Set +- **41 Working Modules**: Security (14), Website (3), Performance (5), Backup (11), Diagnostics (8) +- **Reference Database**: 1-hour cached status for cross-module intelligence +- **Zero Hardcoded Paths**: Automatic control panel detection and path abstraction ## 🙏 Credits