Files

4.7 KiB

fileutils — 60 MORE monitor utilities (251-310): btop/htop-style, all unique

Second wave, Dec 3, 2026. Branch monitors-60, merged to master after. Every utility is ONE file in bin/, C preferred (monitors are a good C fit), bash/Python where they fit better, stdlib/POSIX only, Termux-compatible. Each has a header comment (description + usage), a working --help, and a --selftest that proves it works on sample input and EXITS 0 on a VPS with no sensors (no thermal zones, no GPU, no battery): temperature/GPU/battery/ fan tools must degrade gracefully with a clear message, and --selftest must use mock data or the no-sensor path and finish in seconds. Live tools: --selftest runs a short non-interactive pass (one sample or a few iterations) and exits; the default mode may loop live (support --seconds N / --count N to bound it).

Format: NNN name | one-line description

Temperature graphers & thermal (251-262)

251 tempgraph | live CPU temperature sparkline over time from thermal zones 252 coretemp | per-core temperature table with mini sparkline graphs 253 gputemp | GPU temperature graph (nvidia-smi/amdgpu, graceful fallback) 254 temphist | log temperatures to a file and render the history as an ASCII graph 255 tempzones | all thermal zones side-by-side with sparklines 256 tempdelta | temperature rate of change in degC/min per zone 257 tempalarm | alert when any temperature crosses a threshold (print/log, optional loop) 258 tempfan | temperature vs fan speed correlation plot 259 tempthrottle | detect thermal throttling from CPU MHz drop + temperature 260 tempdiff | temperature before vs after running a command (thermal cost of a workload) 261 tempmax | session high-water marks: max temp per zone with timestamps 262 tempslope | predict minutes to throttle from the current heating slope

CPU (263-270)

263 corebars | per-core CPU usage bars, live, one line per core 264 cpushare | CPU time split user/system/iowait/idle as stacked bars 265 cpusteal | steal time monitor for VMs with history graph 266 irqtop | top interrupt consumers from /proc/interrupts and /proc/stat 267 ctxwatch | context switch rate monitor 268 cpuidle | per-core idle and C-state time monitor 269 runq | run queue length history graph 270 cpuburst | detect CPU bursts and log them with process attribution

Memory (271-277)

271 memleak | watch a process RSS growth over time and flag leaks 272 swaphist | swap in/out history graph 273 slabwatch | slab allocator top consumers 274 pagereclaim | page reclaim and major fault rate monitor 275 psigraph | PSI (pressure stall information) graphs for CPU/memory/IO 276 hugewatch | huge page usage monitor 277 cachehit | page cache hit ratio estimate monitor

Disk/IO (278-284)

278 iolat | per-disk IO latency histogram from /proc/diskstats deltas 279 iodepth | IO queue depth monitor 280 diskrate | per-disk read/write rate bars, live 281 fswatch | filesystem write volume per mount point 282 ioproc | top processes by IO with live delta rates 283 diskbusy | disk busy percentage per device graph 284 trimwatch | TRIM/discard activity monitor from /proc/diskstats

Network (285-292)

285 netlat | latency to multiple hosts graphed over time 286 neterr | interface error and drop counter monitor 287 socktop | top sockets by state (ESTABLISHED/TIME_WAIT counts) 288 portflow | per-port traffic rates (which local port is busy) 289 dnswatch | DNS query latency monitor with graph 290 netqueue | interface queue/backlog monitor (drops, qdisc) 291 wifigraph | WiFi signal strength graph over time 292 netretrans | TCP retransmit rate monitor

Process (293-298)

293 procmem | top processes by memory with tree grouping 294 proccpu | top processes by CPU with per-PID history sparklines 295 procage | longest-running processes with age and start time 296 procstate | process counts by state (R/S/D/Z/T) graphed over time 297 procfork | fork rate monitor (new processes per second) 298 procrestart | detect processes that restart frequently

GPU (299-301)

299 gpuload | GPU utilization and memory graph 300 gpuproc | top processes by GPU memory 301 gpupower | GPU power draw graph

Battery/power (302-304)

302 batgraph | battery charge/discharge graph over time 303 wattwatch | power draw estimate in watts from battery rate + CPU 304 suspendwatch | suspend/resume event log monitor

System/misc (305-310)

305 loadspike | detect load spikes, log them with top processes at the moment 306 bootchart | boot time breakdown from dmesg/systemd timestamps 307 kerneltop | top kernel threads by CPU 308 fdgraph | open file descriptor count history graph per process 309 lockwatch | detect processes stuck in uninterruptible sleep (D-state) with duration 310 sysdash | combined mini-dashboard: CPU, memory, disk, net, temp summary on one screen