How to install nmon to monitor Linux

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

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
Install nmon on Linux
Install nmon on Linux

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

nmon interface
nmon interface

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.
Using nmon to monitor Linux
Using nmon to monitor Linux

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.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook