cpumon

command module
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 16 Imported by: 0

README

cpumon

Real-time CPU monitoring for Linux. Shows temperatures, frequencies, throttling, and fan status.

Install

AUR (Arch Linux):

yay -S cpumon

Pre-built binary:

curl -Lo cpumon https://github.com/Mohabdo21/cpumon/releases/latest/download/cpumon-linux-amd64
chmod +x cpumon
sudo mv cpumon /usr/local/bin/

With Go:

go install github.com/Mohabdo21/cpumon@latest

From source:

make build-optimized
sudo make install

Run

cpumon           # 1 second refresh (default)
cpumon -i 500ms  # 500ms refresh
cpumon -i 2s     # 2 second refresh

Requires root for some metrics like power consumption, set read/search file capabilities with:

sudo setcap cap_dac_read_search=ep /bin/cpumon

Configuration

Power threshold colors are configurable via env vars (defaults shown):

Env var Default Description
CPUMON_POWER_WARN 15 Power warning threshold in W (yellow)
CPUMON_POWER_CRIT 28 Power critical threshold in W (red)

Example:

CPUMON_POWER_WARN=50 CPUMON_POWER_CRIT=80 cpumon

Supported Hardware

  • Intel (coretemp)
  • AMD (k10temp, zenpower)
  • ARM (cpu_thermal)
  • ThinkPad fan interface
  • Generic hwmon fans

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL