Hello, friends. In this post, you will learn how to install nmon on Linux. With this tool, you will be able to monitor a Linux system quickly.
nmon is short for Nigel’s performance Monitor for Linux on POWER, x86, x86_64, Mainframe & now ARM (Raspberry Pi)
Thanks to nmon, You can display the CPU, memory, network, disks (mini graphs or numbers), file systems, NFS, top processes, resources (Linux version & processors) and on Power micro-partition information.
Another important feature of nmon is that you can save the generated information for later analysis. In this way, you will have an extra help to determine better solutions to problems originating from the server.
Easy to use, open source and powerful are some to describe nmon.
Install nmon on Linux
nmon is included in the official repositories of some Linux distributions. So, its installation is simple. Let’s get started.
In the case of Debian, Ubuntu and derivatives, you just need to update the distribution
sudo apt update
sudo apt upgrade
And then, install nmon
sudo apt install nmon
However, in the case of RHEL and derivatives, you can also download the corresponding binaries from the project website. Then, unzip it and run the binary.
In other cases, just run the nmon
command.
The nmon interface
With nmon installed on your system, you can now run it as any other command
nmon
As soon as you do, you will see this screen
Right there you will see some instructions. The most prominent ones are to press H
to get help or disable/enable some fields to show in the statistics.
When you know which statistics you want to show, then press the keys that activate them. Some of them are:
- c – For cpu stats.
- m – Memory stats.
- d – Disk stats.
- k – For kernel stats.
- n – For network stats.
- N – NFS stats.
In addition to this, q
to close the execution of nmon.
This way, you will have a simple tool with which to know the resource consumption of the operating system.
Conclusion
nmon is simple and light, but with important features that make it truly loved among the community.