{"id":852,"date":"2009-12-01T07:37:08","date_gmt":"2009-12-01T12:37:08","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=852"},"modified":"2009-12-01T07:37:08","modified_gmt":"2009-12-01T12:37:08","slug":"monitor-cpu-abusers","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/","title":{"rendered":"Monitor cpu abusers"},"content":{"rendered":"<p>I have found a script called <a href=\"http:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2009\/12\/monitorCpuUsage.sh.txt\">monitorCpuUsage.sh<\/a>. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu.<\/p>\n<p>Here is the help screen:<\/p>\n<p># .\/monitorCpuUsage.sh -h   (help)<\/p>\n<p>Usage: monitorCpuUsage.sh<br \/>\n-u starting uid, must be an integer greater than or equal to 0 (only used with &#8220;-w users&#8221;)<br \/>\n-m max cpu, must be an integer greater than or equal to 0 and less than 100<br \/>\n-w what to watch, must be &#8220;users&#8221; or &#8220;procs&#8221;<br \/>\n-e must contain an email address<br \/>\n-d specifies debug mode in which -e, -m, and -u do not need to be specified.<\/p>\n<p>Here the script in use. Use the -d option which means the script sets the \u201cmaximum cpu allowed to -1? and prints to the screen rather than emailing.<\/p>\n<p># .\/monitorCpuUsage.sh -w users -d -u 100<\/p>\n<p>Tue Dec  1 07:31:29 EST 2009<br \/>\nUser brock is using 0% cpu.<br \/>\nUser nfsnobody is using 0% cpu.<br \/>\nUser USER is using 0% cpu.<\/p>\n<p>Watching processes\u2026again with -d specified.<\/p>\n<p># .\/monitorCpuUsage.sh -w procs -d<br \/>\nMon Oct 15 03:17:20 EDT 2007<br \/>\nProcess aio\/0 is using 0% cpu.<br \/>\nProcess atd is using 0% cpu.<br \/>\nProcess bash is using 0% cpu.<br \/>\nProcess crond is using 0% cpu.<br \/>\nProcess dhclient is using 0% cpu.<br \/>\nProcess events\/0 is using 0% cpu.<br \/>\nProcess httpd is using 0% cpu.<br \/>\nProcess init is using 0% cpu.<br \/>\nProcess java is using 0% cpu.<br \/>\nProcess jfsCommit is using 0% cpu.<br \/>\nProcess jfsIO is using 0% cpu.<br \/>\nProcess jfsSync is using 0% cpu.<br \/>\nProcess kblockd\/0 is using 0% cpu.<br \/>\nProcess kcryptd\/0 is using 0% cpu.<br \/>\nProcess khelper is using 0% cpu.<br \/>\nProcess kjournald is using 0% cpu.<br \/>\nProcess klogd is using 0% cpu.<br \/>\nProcess ksnapd is using 0% cpu.<br \/>\nProcess ksoftirqd\/0 is using 0% cpu.<br \/>\nProcess kswapd0 is using 0% cpu.<br \/>\nProcess kthreadd is using 0% cpu.<br \/>\nProcess lockd is using 0% cpu.<br \/>\nProcess mingetty is using 0% cpu.<br \/>\nProcess monitorCpuUsage is using 0% cpu.<br \/>\nProcess mysqld is using 0% cpu.<br \/>\nProcess mysqld_safe is using 0% cpu.<br \/>\nProcess nfsd is using 0% cpu.<br \/>\nProcess pdflush is using 0% cpu.<br \/>\nProcess portmap is using 0% cpu.<br \/>\nProcess ps is using 0% cpu.<br \/>\nProcess rpc.mountd is using 0% cpu.<br \/>\nProcess rpc.rquotad is using 0% cpu.<br \/>\nProcess rpc.statd is using 0% cpu.<br \/>\nProcess rpciod\/0 is using 0% cpu.<br \/>\nProcess sendmail is using 0% cpu.<br \/>\nProcess sshd is using 0% cpu.<br \/>\nProcess su is using 0% cpu.<br \/>\nProcess syslogd is using 0% cpu.<br \/>\nProcess xfs is using 0% cpu.<br \/>\nProcess xfsdatad\/0 is using 0% cpu.<br \/>\nProcess xfslogd\/0 is using 0% cpu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have found a script called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu. Here is the help screen: # .\/monitorCpuUsage.sh -h (help) Usage: monitorCpuUsage.sh -u starting uid, must be an integer greater than or equal to 0 (only&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-852","post","type-post","status-publish","format-standard","hentry","category-info"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Monitor cpu abusers - Linux Shtuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitor cpu abusers - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"I have found a script called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu. Here is the help screen: # .\/monitorCpuUsage.sh -h (help) Usage: monitorCpuUsage.sh -u starting uid, must be an integer greater than or equal to 0 (only... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2009-12-01T12:37:08+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"Monitor cpu abusers\",\"datePublished\":\"2009-12-01T12:37:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/\"},\"wordCount\":384,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"General Info\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/\",\"name\":\"Monitor cpu abusers - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2009-12-01T12:37:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/monitor-cpu-abusers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitor cpu abusers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Monitor cpu abusers - Linux Shtuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/","og_locale":"en_US","og_type":"article","og_title":"Monitor cpu abusers - Linux Shtuff","og_description":"I have found a script called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu. Here is the help screen: # .\/monitorCpuUsage.sh -h (help) Usage: monitorCpuUsage.sh -u starting uid, must be an integer greater than or equal to 0 (only... Read More","og_url":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2009-12-01T12:37:08+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"Monitor cpu abusers","datePublished":"2009-12-01T12:37:08+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/"},"wordCount":384,"commentCount":0,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["General Info"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/","url":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/","name":"Monitor cpu abusers - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2009-12-01T12:37:08+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/monitor-cpu-abusers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"Monitor cpu abusers"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=852"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/852\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}