{"id":5326,"date":"2014-08-18T00:07:09","date_gmt":"2014-08-17T16:07:09","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=5326"},"modified":"2023-04-28T09:48:17","modified_gmt":"2023-04-28T09:48:17","slug":"how-to-setup-nmon-monitor-linux-performance","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-setup-nmon-monitor-linux-performance\/","title":{"rendered":"How to Setup nmon &#8211; Monitor Linux Performance"},"content":{"rendered":"<p><a href=\"http:\/\/nmon.sourceforge.net\/pmwiki.php\" target=\"_blank\" rel=\"nofollow noopener\">Nmon<\/a> (Nigel\u2019s Monitor) is a great performance monitoring tool for Linux operating system.<\/p>\n<p>It was written initially for AIX to monitor system performance. nmon for Linux can be used to collect informations on CPU, memory, network, disk I\/O, top processes etc.<\/p>\n<p>System administrator can use nmon as a tuner or benchmark tool that will provide performance information in one go.<\/p>\n<p>It can output the data on the screen or can be save the data into a comma separated file for analysis and longer term data capture.<\/p>\n<h2>Steps to setup nmon on linux operating system.<\/h2>\n<p>1. <a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-add-the-rpmforge-repository-on-centos-6rhel-6-linux-server\/\" target=\"_blank\" rel=\"noopener\">How to Add the RPMforge Repository on CentOS 6\/RHEL 6 Linux Server<\/a><\/p>\n<p>2. Rum yum command to install nmon :<\/p>\n<pre># yum install nmon -y\n<\/pre>\n<p>3. Example of nmon command usage :<\/p>\n<p>Type command :<\/p>\n<pre># nmon\n<\/pre>\n<p>Sample output :<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5327 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/08\/setup-nmon-1.png\" alt=\"setup nmon\" width=\"611\" height=\"299\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/08\/setup-nmon-1.png 611w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/08\/setup-nmon-1-300x147.png 300w\" data-sizes=\"(max-width: 611px) 100vw, 611px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 611px; --smush-placeholder-aspect-ratio: 611\/299;\" \/><\/p>\n<p>nmon keyboard shortcuts<\/p>\n<p>q &#8211; To stop and exit nmon.<br \/>\nh &#8211; To see quick help (hint) screen and press h again to remove the hints.<br \/>\nUse the following command to turn on or off stats:<br \/>\nc &#8211; See cpu stats.<br \/>\nm &#8211; See memory stats.<br \/>\nd &#8211; See disk stats.<br \/>\nk &#8211; See kernel stats.<br \/>\nn &#8211; See network stats.<br \/>\nN &#8211; See NFS stats.<br \/>\nj &#8211; See file system stats.<br \/>\nt &#8211; See top process.<br \/>\nV &#8211; See virtual memory stats.<br \/>\n. &#8211; See only busy disks\/procs.<br \/>\nv &#8211; Verbose mode (display as Ok\/warning\/danger on screen).<\/p>\n<p>Sample outputs :<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5328 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/08\/setup-nmon-2.png\" alt=\"setup nmon\" width=\"610\" height=\"516\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/08\/setup-nmon-2.png 610w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/08\/setup-nmon-2-300x254.png 300w\" data-sizes=\"(max-width: 610px) 100vw, 610px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 610px; --smush-placeholder-aspect-ratio: 610\/516;\" \/><\/p>\n<p>4. If you prefer to run nmon as a daemon in the background, run the below command, nmon will complete the data file collection and it will save in a file *.nmon file such as oss_140817_2359.nmon with the details of the command as below :<\/p>\n<pre># nmon -f -s2 -c 30\n<\/pre>\n<pre>-f : Start data collect mode and output in spreadsheet format.\n-s 2 : Wait between 2 seconds or capture data every 2 seconds.\n-c30 : Total number of refreshes (30).\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nmon (Nigel\u2019s Monitor) is a great performance monitoring tool for Linux operating system. It was written initially for AIX to monitor system performance. nmon for Linux can be used to&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5329,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1],"tags":[1536,1606],"class_list":["post-5326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-linux","tag-nmon"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=5326"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5326\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5329"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=5326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=5326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=5326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}