Installing nmon on Linux 6

The nmon (Nigel’s Monitor) tool was written initially for AIX to monitor system performance, but there are plenty of distributions available now so people can use it on a variety of operating systems these days, including flavours of Linux and even the recent Raspberry Pi (mini ARM based computer).

It’s one of my favourite performance monitoring tools out there, and can be used to obtain information on CPU, memory, network, disk I/O, top processes etc.  As well as running nmon interactively, you can also run it in recording mode to build up historical statistics for your server(s).

To install nmon on Linux, it’s as straight forward as this:

cd /usr/bin
wget http://sourceforge.net/projects/nmon/files/nmon_x86_64_rhel6
chmod +x nmon_x86_64_rhel6
ln -s nmon_x86_64_rhel6 nmon
export NMON=cmt
nmon

If you want to install nmon on a different OS, just browse the following URL and fetch the appropriate release: http://sourceforge.net/projects/nmon/files

Keyboard shortcuts

The following keyboard shortcuts can be used turn on (and off) statistics about various components:

c     CPUs
m   Memory
t      Top processes
V    Virtual memory
d     Disks
n     Network adapters
j      Filesystems
N    NFS
k     Kernel

h     Help screens
v     Verbose mode
q     Exit nmon

If you prefer, rather than running nmon and then hitting c, m, and t each time to view CPU, memory, and top processes information (in that order) for example, you can simply export the settings before hand (or add them to your profile) as I did above, like so:

export NMON=cmt

There is a good article on the IBM developerWorks site here (focusing on the AIX versions) which also explains how to run nmon in recording mode and gather historical snapshots.

Leave a comment

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>