Skip to content

feat: Add real-time system status dashboard (fub status) - #15

Merged
tinhtute merged 1 commit into
mainfrom
claude/analyze-mole-updates-01TVzKjNoQNXapeJdbxWK6VA
Nov 23, 2025
Merged

tinhtute merged 1 commit into
mainfrom
claude/analyze-mole-updates-01TVzKjNoQNXapeJdbxWK6VA

Conversation

@tinhtute

Copy link
Copy Markdown
Contributor

Implemented a comprehensive system health monitoring dashboard inspired by Mole's mo status feature, adapted for Ubuntu/Linux systems.

Features:

  • Real-time system metrics collection:
    • CPU: Usage %, load averages, per-core stats, temperature
    • Memory: RAM usage, swap usage, available memory
    • Disk: Space usage with color-coded alerts, I/O read/write speeds
    • Network: Active interface, download/upload speeds
    • System: OS info, kernel, uptime, process count

  • Health Score System:
    • Calculates overall system health (0-100)
    • Weighted scoring based on CPU (30%), Memory (30%), Disk (20%), Load (20%)
    • Color-coded display: Green (80+), Yellow (60-79), Red (<60)
    • Health status: Excellent, Good, Fair, Poor

  • Interactive Dashboard:
    • Auto-refresh every 5 seconds
    • Manual refresh with 'R' key
    • Clean, organized terminal UI with sections
    • Shows top 5 processes by CPU and memory
    • Color-coded metrics based on thresholds

  • Integration:
    • Added to main fub menu as option 1
    • Accessible via "fub status" command
    • Auto-installs dependencies (bc, sysstat) if missing

Technical Implementation:

  • Uses /proc filesystem for metrics
  • Linux-specific commands (mpstat, df, ps, top)
  • Bash arithmetic and awk for calculations
  • Consistent with fub's color scheme and UX

Addresses Mole update analysis for Ubuntu/Linux compatibility.

Implemented a comprehensive system health monitoring dashboard inspired by Mole's mo status feature, adapted for Ubuntu/Linux systems.

Features:
- Real-time system metrics collection:
  • CPU: Usage %, load averages, per-core stats, temperature
  • Memory: RAM usage, swap usage, available memory
  • Disk: Space usage with color-coded alerts, I/O read/write speeds
  • Network: Active interface, download/upload speeds
  • System: OS info, kernel, uptime, process count

- Health Score System:
  • Calculates overall system health (0-100)
  • Weighted scoring based on CPU (30%), Memory (30%), Disk (20%), Load (20%)
  • Color-coded display: Green (80+), Yellow (60-79), Red (<60)
  • Health status: Excellent, Good, Fair, Poor

- Interactive Dashboard:
  • Auto-refresh every 5 seconds
  • Manual refresh with 'R' key
  • Clean, organized terminal UI with sections
  • Shows top 5 processes by CPU and memory
  • Color-coded metrics based on thresholds

- Integration:
  • Added to main fub menu as option 1
  • Accessible via "fub status" command
  • Auto-installs dependencies (bc, sysstat) if missing

Technical Implementation:
- Uses /proc filesystem for metrics
- Linux-specific commands (mpstat, df, ps, top)
- Bash arithmetic and awk for calculations
- Consistent with fub's color scheme and UX

Addresses Mole update analysis for Ubuntu/Linux compatibility.
@tinhtute
tinhtute merged commit 7f93cd0 into main Nov 23, 2025
1 check failed
@tinhtute
tinhtute deleted the claude/analyze-mole-updates-01TVzKjNoQNXapeJdbxWK6VA branch November 23, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants