In this tutorial, we will show you how to install Nmon on Ubuntu 22.04 LTS. For those of you who didn’t know, Nmon (Nigel’s performance Monitor) is a popular performance monitoring tool for Linux operating systems. It provides an overview of the system performance, including system statistics such as CPU usage, memory usage, disk I/O activity, network traffic, and more. Whether you are a system administrator or a performance analyst, Nmon is a valuable tool to have in your toolkit.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of the Nmon monitoring tool on Ubuntu 22.04 (Jammy Jellyfish). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.
Prerequisites
- A server running one of the following operating systems: Ubuntu 22.04, 20.04, and any other Debian-based distribution like Linux Mint.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Nmon.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Nmon on Ubuntu 22.04 LTS Jammy Jellyfish
Step 1. First, make sure that all your system packages are up-to-date by running the following apt
commands in the terminal.
sudo apt update sudo apt upgrade sudo apt install wget apt-transport-https gnupg2 software-properties-common
Step 2. Installing Nmon on Ubuntu 22.04.
By default, Nmon is available on Ubuntu 22.04 base repository. Now run the following command below to install the latest version of Nmon to your Ubuntu system:
sudo apt install nmon
Step 3. Accessing Nmon on Ubuntu 22.04.
Once successfully installed on your Ubuntu system, run the following path on your desktop to open the path: Activities -> Show Applications -> Nmon
. Alternatively, you can launch it from the terminal with this command:
nmon
Here is a table of Nmon commands and examples:
Command | Description | Example |
---|---|---|
nmon | Starts Nmon in interactive mode | nmon |
-f | Specifies the output file for Nmon data | nmon -f output.nmon |
-s | Specifies the interval between data captures in seconds | nmon -s 5 |
-c | Specifies the number of data captures | nmon -c 60 |
-t | Specifies the output format as a CSV file | nmon -t |
-h | Shows the help menu for Nmon | nmon -h |
Here is a sample scenario using Nmon:
To start Nmon in interactive mode, open a terminal and type
nmon
. The Nmon interface will appear, displaying various system performance statistics.To specify the output file for Nmon data, use the
-f
option. For example,nmon -f output.nmon
will capture Nmon data and save it to the fileoutput.nmon
.To specify the interval between data captures, use the
-s
option. For example,nmon -s 5
will capture data every 5 seconds.To specify the number of data captures, use the
-c
option. For example,nmon -c 60
will capture data 60 times.To specify the output format as a CSV file, use the
-t
option. For example,nmon -t
will produce a CSV file that can be easily imported into a spreadsheet for analysis.To show the help menu for Nmon, use the
-h
option. For example,nmon -h
will display a list of all available Nmon commands and options.
Congratulations! You have successfully installed Nmon. Thanks for using this tutorial for installing the Nmon monitoring tool on Ubuntu 22.04 LTS Jammy Jellyfish system. For additional help or useful information, we recommend you check the official Nmon website.