KYGnus HardwareCheck & StackFit

Hardware Diagnostics, Fault Detection, Laptop Recommendation & Remote System Assessment Platform

HardwareCheck Dashboard
StackFit Laptop Recommendations
Hardware Diagnostics
Remote Diagnostics Progress

Project Overview

KYGnus HardwareCheck & StackFit is a Python-based hardware assessment and system recommendation platform designed to evaluate computer hardware, identify potential hardware issues, recommend suitable laptops for software workloads, and perform remote diagnostics on Linux and Windows systems.

The application combines hardware monitoring, automated diagnostic procedures, software requirement analysis, inventory management, and PDF report generation in a unified Flask web interface.

Developed for hardware technicians, IT administrators, Linux service providers, refurbishing businesses, and organizations involved in computer lifecycle management.

Main Features

Hardware Diagnostics

Perform automated hardware diagnostics on the local Linux machine, evaluating CPU, RAM, storage (SMART health), GPU, thermal sensors, battery, network, and motherboard. Results are returned in structured JSON format.

Automated Hardware Assessment

Combines individual hardware tests into a comprehensive system assessment with overall statuses: PASS WARNING FAIL UNKNOWN

Hardware Stress Testing

Supports controlled stress testing through stress-ng for CPU, virtual memory, and I/O. Default diagnostic stress-test duration: 30 seconds. Generates additional system load and heat — run only with authorization and thermal monitoring.

Laptop Recommendation Engine (StackFit)

Evaluates laptop inventory against hardware requirements of selected software applications. Supports Windows and Linux OS selection, individual application or category browsing, and ranks matching laptops with compatibility scores.

Scoring weights: CPU 30 · RAM 30 · Storage 25 · GPU 15 (total 100). Additional points awarded for meeting recommended specs and exceeding minimum requirements. Default recommendation limit: 15 laptops, max 2 per brand initially.

Laptop Inventory Management

Import laptop inventory via CSV (16 MB limit). Required columns: Brand, Name, Processor_Name, RAM, SSD, HDD, GPU. Optional: Display, Ghz, RAM_TYPE, Battery_Life. Includes validation, parsing, per-session storage, and listing.

Remote Hardware Diagnostics

Supports remote hardware assessment over SSH for Linux (via Paramiko) and Windows (via mswindows_remote_check module). Collects OS/kernel, CPU, memory, storage, GPU, thermal, battery, network, and motherboard info without physical access.

Remote Diagnostic Progress Streaming

Uses Server-Sent Events (SSE) to communicate real-time progress: connection status, task execution, command output previews, completion, and errors. Runs in a background thread for a responsive web interface.

PDF Hardware Reports

Generates professional PDF reports via the hardware_pdf.py module, including system identification, diagnostic results, component status, warnings, customer info, serial number, technician info, and notes. Ideal for refurbished inspections, service records, and acceptance procedures.

Ubuntu Hardware Certification & Software Availability

Integrates with the Ubuntu Certification API to check if a hardware model appears in the Ubuntu desktop certification catalog. Also includes package availability checks for APT (Ubuntu/Debian) and DNF (Fedora) repositories.

Architecture

KYGnus HardwareCheck & StackFit
│
├── app.py                  Flask app, recommendation engine, inventory,
│                           diagnostics, remote diagnostics, SSE, PDF endpoints
├── config.py               Application configuration
├── Softwares.py            Software hardware requirements
├── hardware_pdf.py         PDF report generation
├── mswindows_remote_check.py Windows remote diagnostics
├── templates/              home, categories, softwares, recommendations,
│                           upload, laptops, about, contact, hardware_dashboard,
│                           hardware_report, hardware_report_print
└── static/                 css, js, images

Key API Routes

RouteMethodDescription
/GETMain landing page
/homeGET/POSTOperating system selection
/uploadGET/POSTUpload laptop inventory (CSV)
/recommend-laptopsPOSTGenerate laptop recommendations
/hardware/automaticGETRun complete diagnostics
/hardware/report/pdfGETGenerate PDF report
/api/remote-diagnosticsPOSTStart remote diagnostics
/api/remote-diagnostics/streamGETReceive diagnostic progress (SSE)
/api/remote-diagnostics/last/pdfGETGenerate remote PDF report

Remote Diagnostics API Example

POST /api/remote-diagnostics
Content-Type: application/json

{
    "ip": "192.168.1.50",
    "user": "administrator",
    "port": 22,
    "password": "YOUR_PASSWORD",
    "os_type": "linux"
}

Response:
{
    "status": "started",
    "os_type": "linux",
    "target": "administrator@192.168.1.50:22"
}

SSH key authentication is also supported via "key_path": "/path/to/private_key". Monitor progress at GET /api/remote-diagnostics/stream (Server-Sent Events).

Installation & Dependencies

# Clone repository
git clone https://github.com/KYGnus/REPOSITORY.git
cd REPOSITORY

# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate

# Install Python dependencies
pip install --upgrade pip
pip install Flask pandas psutil requests paramiko Werkzeug

# Install Linux system utilities (Debian/Ubuntu)
sudo apt install -y pciutils usbutils util-linux smartmontools \
    lm-sensors stress-ng iproute2 procps python3 python3-pip python3-venv

# Run the application
python app.py
# Default: http://127.0.0.1:5005
🔒 Security Considerations

This application executes local system diagnostic commands and connects to remote computers via SSH. For production: never expose the Flask development server directly, use Gunicorn behind an HTTPS reverse proxy, prefer SSH keys over passwords, replace AutoAddPolicy with host-key verification, restrict stress-testing endpoints, protect diagnostic reports, use secure session cookies and a production secret key, and implement authentication, authorization, and rate limiting before multi-user exposure. The current config uses debug=True — disable it in production.

Intended Use Cases

  • Laptop refurbishment and resale businesses
  • Hardware inspection and certification workflows
  • Linux hardware compatibility assessment
  • IT service providers and system administrators
  • Computer repair technicians
  • Enterprise hardware inventory management
  • Remote computer diagnostics
  • Hardware lifecycle assessment
  • Software-to-hardware compatibility recommendations

The platform helps organizations assess existing hardware before replacing it, supporting informed refurbishment and hardware reuse decisions.

Project Philosophy

KYGnus develops Linux-oriented software and hardware management solutions focused on system optimization, hardware lifecycle extension, and practical IT infrastructure. HardwareCheck & StackFit combines hardware diagnostics with software requirement analysis to help technicians and organizations make better decisions about computer hardware. The objective is not simply to identify hardware specifications, but to understand system condition, evaluate suitability for workloads, and support informed hardware reuse.

Project Information

  • Product: KYGnus HardwareCheck & StackFit
  • Developer: KYGnus
  • Maintainer: KYGnus
  • Collaboration: Elco Trading
  • Contact: kygnus.co@proton.me
  • Framework: Python / Flask
  • Architecture: Web-based application
  • Diagnostic Protocol: SSH
  • Report Format: PDF / JSON
  • Remote Systems: Linux and Windows
  • Category: Hardware Diagnostics / System Assessment / Recommendation
  • Technologies:
    Python Flask Paramiko psutil pandas SSE SMART stress-ng PDF
  • Project Date: 2025
  • Project URL: GitHub Repository

Technical Details

HardwareCheck & StackFit is a Flask web application organized into modular components: the main app (recommendation engine, inventory, diagnostics, remote diagnostics, SSE streaming, PDF endpoints), configuration, software requirements, PDF generation, and Windows remote diagnostic modules.

Python Dependencies

  • Flask
  • pandas
  • psutil
  • requests
  • paramiko
  • Werkzeug

Linux System Utilities

  • pciutils, usbutils, util-linux
  • smartmontools (SMART diagnostics)
  • lm-sensors (thermal)
  • stress-ng (stress testing)
  • iproute2, procps

Report & Diagnostic Capabilities

  • Local hardware diagnostics (CPU, RAM, storage, GPU, thermal, battery, network, motherboard)
  • Automated overall PASS / WARNING / FAIL / UNKNOWN assessment
  • Remote diagnostics over SSH (Linux & Windows)
  • Real-time progress via Server-Sent Events
  • PDF & JSON report generation
  • Ubuntu Certification API integration
  • APT / DNF package availability checks
Developed and Maintained by KYGnus
In collaboration with Elco Trading
KYGnus — Koosha Yeganeh GNU/Linux Softwares