{"id":1300,"date":"2017-12-15T09:47:37","date_gmt":"2017-12-15T09:47:37","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1300"},"modified":"2017-12-15T09:49:44","modified_gmt":"2017-12-15T09:49:44","slug":"process-memory-size","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/process-memory-size\/","title":{"rendered":"Process Memory size"},"content":{"rendered":"<p class=\"description_pui\">An easy way to get process memory usage information, using native Windows shell command (I think this works only on XP or higher).<\/p>\n<h2>Module data<\/h2>\n<p>This is for the own PandoraAgent process. Replace with your desired process. Just executing tasklist show a full list of process running. This makes use of grep and gawk tools provided by Pandora FMS Windows agent.<\/p>\n<pre>module_begin\u00a0\r\nmodule_name PandoraAgent_Mem\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec tasklist | grep PandoraAgent | gawk \"{ print $4 }\" | tr -d \",\"\u00a0\r\nmodule_end<\/pre>\n<p>In Windows 2008, we need a slight modification:<\/p>\n<pre>module_begin\u00a0\r\nmodule_name PandoraAgent_Mem\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec tasklist | grep PandoraAgent | gawk \"{ print $5 }\" | tr -d \",\"\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>An easy way to get process memory usage information, using native Windows shell command (I think this works only on XP or higher). Module data This is for the own PandoraAgent process. Replace with your desired process. Just executing tasklist show a full list of process running. This makes use of grep and gawk tools [&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":[6,26],"tags":[359],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1300"}],"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=1300"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1300\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}