<style type="text/css">a[data-mtli~="mtli_filesize138kB"]:after {content:" (1.38 kB)"}a[data-mtli~="mtli_filesize149kB"]:after {content:" (1.49 kB)"}</style><style type="text/css">a[data-mtli~="mtli_filesize138kB"]:after {content:" (1.38 kB)"}a[data-mtli~="mtli_filesize149kB"]:after {content:" (1.49 kB)"}</style>{"id":1628,"date":"2017-12-18T10:12:09","date_gmt":"2017-12-18T10:12:09","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1628"},"modified":"2017-12-18T10:15:44","modified_gmt":"2017-12-18T10:15:44","slug":"cpu-of-a-running-process","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/cpu-of-a-running-process\/","title":{"rendered":"CPU % of a running process"},"content":{"rendered":"<p>This Pandora FMS module, used as script, allow to get individual CPU usage for each specified process. This is done by a small script written in VBscript which ask several WMI sources to get a value, used as percentage for individual CPU Usage for a given process.<\/p>\n<p>This agent plugin needs two parameters:<\/p>\n<pre>\r\nPROCESS_FULL PROCESS_SHORT\r\n<\/pre>\n<p>Process full name (as seen in taskmanager), for example FIREFOX.EXE. Please be careful because UPPERCASE names are not the same than lowercase.<\/p>\n<p>Process short name (as seen in Win32_PerfRawData_PerfProc_Process), for example FIREFOX. This is usually the same name, but without extension.<\/p>\n<p>Example of usage:<\/p>\n<pre>\r\nmodule_exec cscript.exe \/\/B \"%ProgramFiles%Pandora_Agentutilprocess_cpu.vbs\" FIREFOX.EXE FIREFOX\r\n<\/pre>\n<p>Limitations: If you have several process running with the same name, this will give the first one.<\/p>\n<h2>Files:<\/h2>\n<p><a href=\"\/library\/files_repository\/1299624653.slerena.process_cpu.zip\" class=\"mtli_attachment mtli_zip\" data-mtli=\"mtli_filesize138kB\" rel=\"nofollow\">\tprocess_cpu.zip<\/a><\/p>\n<p><a href=\"\/library\/files_repository\/1300102968.slerena.process_cpu_v2.zip.zip\" class=\"mtli_attachment mtli_zip\" data-mtli=\"mtli_filesize149kB\" rel=\"nofollow\">process_cpu_v2.zip.zip<\/a>\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Pandora FMS module, used as script, allow to get individual CPU usage for each specified process. This is done by a small script written in VBscript which ask several WMI sources to get a value, used as percentage for individual CPU Usage for a given process. This agent plugin needs two parameters: PROCESS_FULL PROCESS_SHORT [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[26],"tags":[190],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1628"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=1628"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1628\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}