Install and Use nmon Tool To Monitor Linux Systems Performance

www‮al.‬utturi.com
Install and Use nmon Tool To Monitor Linux Systems Performance

nmon (short for Nigel's Performance Monitor) is a free, open-source tool for monitoring and analyzing system performance on Linux systems. It provides a range of features for collecting and analyzing performance data, including CPU utilization, memory usage, network activity, and disk I/O.

To install and use nmon on a Linux system, follow these steps:

  1. Download the latest version of nmon from the official website (https://nmon.sourceforge.io/pmwiki.php?n=Site.Download) or a package repository.

  2. Install nmon using your preferred method. For example, if you have downloaded a tarball, you can extract it and run the install.sh script as follows:

tar xzf nmon_x86_64_centos6.tar.gz
cd nmon_x86_64_centos6
./install.sh

If you have downloaded a package, you can install it using your package manager. For example, on a Debian-based system:

sudo apt-get install nmon
  1. Once nmon is installed, you can run it from the command line by typing nmon. By default, nmon will start in interactive mode, displaying a menu of available performance data categories.

  2. Use the f key to toggle between different data categories, and the s key to adjust the sampling interval. Press q to quit nmon.

  3. You can also use nmon in non-interactive mode by specifying a set of options on the command line. For example, to collect data for all categories and save it to a file called nmon.out, you can use the following command:

nmon -f -s 60 -c 720 -T -m /tmp -s -x -F nmon.out

This command will collect data for all categories every 60 seconds, for a total of 720 samples (12 hours). The data will be saved to the file nmon.out in CSV format.

For more information on using nmon and its various options, you can refer to the nmon documentation or the man page (man nmon). You can also use tools like nmon2rrd or nmonchart to visualize the performance data collected by nmon.

Created Time:2017-10-29 22:08:49  Author:lautturi