Pages

Monday 6 August 2012

Compiling Nmon Under RHEL / CentOS / Fedora / Scientific Linux


Compiling Nmon Under RHEL / CentOS / Fedora / Scientific Linux

   wget http://ncu.dl.sourceforge.net/project/nmon/lmon14g.c
   wget http://ncu.dl.sourceforge.net/project/nmon/makefile

yum install ncurses-devel

mv lmon14g.c lmon.c

Open the makefile and find the the directive that matches your platform and Linux release:

vi makefile

make nmon_x86_rhel52

You can move nmon_x86_rhel52 to /usr/local/sbin, enter:

mv nmon_x86_rhel52 /usr/local/sbin/nmon

How do I set default monitoring options for nmon?

To see the memory, network, disk and processor statistics immediately after the nmon command is started, run (or add in your shell startup file):

# export NMON=mndc

Run the nmon command:

# nmon

Capturing and analyzing data with nmon

You can capture the data to a file for later analysis and graphing. Type the following command:
# nmon -f -s2 -c 30

OR
# nmon -ft -s 30 -c 120


No comments:

Post a Comment

Twitter Bird Gadget