Setup NMON in RHEL

Download nmon for RHEL:
http://nmon.sourceforge.net/pmwiki.php?n=Site.Download

Install nmon in RHEL:
cp nmon16e_x86_rhel72 /usr/local/bin/
chmod a+x /usr/local/bin/nmon16e_x86_rhel72
ln -s /usr/local/bin/nmon16e_x86_rhel72 /usr/local/bin/nmon

Configure nmon:
su – oracle
mkdir /nmon
cd nmon/
vi /nmon.sh
#Syntax nmon:
#[ -f | -F filename ]
#[ -r < runname > ]
#[ -t | -T | -Y Includes the top processes in the output.]
#[ -s seconds ]
#[ -c number ]
#[ -m < dir > ]
/usr/local/bin/nmon-f -r -t -s 20 -c 350 -m /nmon/
find /nmon -name “*.nmon” -type f -mtime +2 -exec gzip -9 {} \;

chmod 755 /nmon.sh
crontab -l
##NMON
0 */2 * * * /nmon/nmon.sh > /nmon/nmon.log 2>&1
./nmon.sh
ls
nmon.sh vmapmtcdhemeappegwgg_201127_1136.nmon
ll
total 44
-rwxr-xr-x. 1 oracle oinstall 60 Nov 27 11:25 nmon.sh
-rw-r—–. 1 oracle oinstall 40735 Nov 27 11:36 vmapmtcdhemeappegwgg_201127_1136.nmon
ps ux |grep nmon
oracle 2324 0.1 0.0 16260 908 pts/2 S 11:36 0:00 nmon -f -r -t -s 20 -c 350 -m /nmon/

 

https://www.ibm.com/support/knowledgecenter/ssw_aix_72/n_commands/nmon.html
nmon [ -f | -F filename | -x | -X | -z ] [ -r < runname > ] [ -t | -T | -Y ] [ -s seconds ] [ -c number ] [ -w number ] [ -l dpl ] [ -d ] [ -g filename ] [ -k disklist ] [ -C <process1:process2:..:processN > ] [ -G ] [ -K ] [ -o outputpath ] [ -D ] [ -E ] [ -J ] [ -V ] [ -P ] [ -M ] [ -N ] [ -W ] [ -S ] [ -^ ] [ -O ] [ -L ] [ -I percent ] [ -A ] [ -m < dir > ] [ -Z priority ] [ -i ] [-y options]

Leave a Reply

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