Capture Performance Logs With nmon

Record system metrics to a CSV for offline analysis.

LinuxProcessesmonitoringperformanceLow risk
Run nmon -f -s 1 -c 60 -m /tmp to log once per second for 60 samples.

01Command

Command
$ nmon -f -s 1 -c 60 -m /tmp

02What it does

nmon samples CPU, memory, disk and network and can write a delimiter-separated file that its analyzer or a spreadsheet reads, which is ideal for long unattended captures on a server. Interactive monitors cannot run headless this way.

03Risk

RiskLow risk
Requirementssudo apt install nmon
!Warning: Some metrics require root to read; ensure the capture runs with the privileges it needs and rotate old logs.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions