feat: Introduce comprehensive printer and system diagnostics, including CUPS service status, job queue monitoring, disk space alerts with auto-cleanup, and a support ticket generation workflow.

This commit is contained in:
Zin Bo Thit
2026-02-10 16:50:44 +06:30
parent 476977dc83
commit 4a3a00772d
6 changed files with 189 additions and 14 deletions

View File

@@ -2,6 +2,9 @@
**C2LInspecz** is the official diagnostic and health-monitoring utility by **Code2Lab**. It is a modern, high-performance GUI application designed to identify, troubleshoot, and resolve issues within the Smartsales POS ecosystem.
![C2LInspecz Dashboard](assets/dashboard.png)
## 🚀 Core Features
### 1. Automated System Audit
@@ -10,18 +13,29 @@ A comprehensive "One-Click" audit that analyzes your shop's infrastructure in re
- **Printer Ecosystem**:
- **USB Printers (Cashier)**: Scans the physical USB bus to ensure local receipt printers are connected.
- **Network Printers (Kitchen/Bar)**: Pings remote printers to verify they are online and responding.
- **Hardware Health**: Monitors CPU load, RAM usage, and Disk space.
- **Hardware Health**: Monitors CPU load, RAM usage, and real-time Disk space.
### 2. The "Spooler Shield" (Auto-Fix)
The tool monitors the internal print queue for "Stuck" jobs that often freeze cashier operations. If glitches are detected, the user can purge the queue with a single click to restore normal printing.
### 2. The "Spooler Shield" & CUPS Watchdog
The tool actively monitors the printing subsystem to prevent shop downtime:
- **Queue Monitoring**: Detects "Stuck" jobs for both Local USB and Network printers.
- **Service Monitoring**: Real-time status check of the Linux CUPS service.
- **One-Click Recovery**: Purges jammed queues and restarts the print services instantly to restore operations.
### 3. Integrated Settings Wizard
### 3. Active Self-Healing (Storage)
To prevent system crashes due to full storage, C2LInspecz includes an automatic maintenance engine:
- **Disk Pressure Detection**: Triggers when available disk space drops below 2GB.
- **Temp Cleanup**: Automatically purges old PDF reports and temporary files to free up critical system space.
### 4. Integrated Settings Wizard
No more manual JSON editing. Shop managers can use the **⚙️ Settings** tab directly in the app to:
- Update the Shop Server IP.
- Add, Edit, or Remove Network and USB printers.
- Save configurations instantly to the system path.
### 4. Smart Escalation
![C2LInspecz Settings](assets/settings.png)
### 5. Smart Escalation
Guides users through self-repair (e.g., "Check power cable"). If a failure is unresolvable locally, the tool packages diagnostic logs into a support ticket for the Code2Lab team.
## 📦 Installation