{"id":5289,"date":"2018-02-27T09:50:09","date_gmt":"2018-02-27T15:50:09","guid":{"rendered":"https:\/\/www.poweradmin.com\/blog\/?p=5289"},"modified":"2018-02-21T16:50:51","modified_gmt":"2018-02-21T22:50:51","slug":"monitor-iis-application-pools","status":"publish","type":"post","link":"https:\/\/www.poweradmin.com\/blog\/monitor-iis-application-pools\/","title":{"rendered":"Monitor IIS Application Pools"},"content":{"rendered":"<p><span style=\"font-family: verdana, geneva, sans-serif;\">We\u2019ve had a number of customers asking how they can monitor their IIS application pools\u2019 status.\u00a0 It turns out there is a handy performance counter that can do that.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/monitor-iis-app-pool.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5290 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/monitor-iis-app-pool.png\" alt=\"\" width=\"724\" height=\"618\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/monitor-iis-app-pool.png 724w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/monitor-iis-app-pool-300x256.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\"><\/a><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">Note that a value of 3 is \u2018Running\u2019.\u00a0 So you just need to create a\u00a0<a href=\"https:\/\/www.poweradmin.com\/help\/latestsmhelp.aspx?page=monitor_perfmon_counter.aspx&amp;ref=blog\">Performance Monitor<\/a> to watch the counter for your instance and make sure it is set to 3.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">So you setup your monitor and life is good:<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-state.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5291 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-state.png\" alt=\"\" width=\"854\" height=\"393\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-state.png 854w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-state-300x138.png 300w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-state-768x353.png 768w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\"><\/a><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">But then you decide you want to monitor all the App Pools, not just one.\u00a0 And you don\u2019t want to setup monitors one by one for this.\u00a0 Instance Wildcards to the rescue!<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-wild-cards.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5292 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-wild-cards.png\" alt=\"\" width=\"724\" height=\"72\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-wild-cards.png 724w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-wild-cards-300x30.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\"><\/a><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">There is just one pesky little problem with this.\u00a0 The _Total instance really is a total of the other values.\u00a0 So if you have 5 App Pools that are all running, it will have a value of 5 x 3 = 15.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">Good news though.\u00a0 If\u00a0 you are using 7.1 (in Preview at the time of this writing), the counter path supports Regular Expressions!\u00a0 So now you can create a path that will expand to all App Pools that start with an upper or lower case letter, or a number.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-regex.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5293 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-regex.png\" alt=\"\" width=\"728\" height=\"71\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-regex.png 728w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2018\/02\/app-pool-regex-300x29.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\"><\/a><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">With that, all _real_ application pools will be checked to see if they are in a Running state.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">See more on the\u00a0<a href=\"https:\/\/www.poweradmin.com\/help\/latestsmhelp.aspx?page=monitor_perfmon_counter.aspx&amp;ref=blog\">documentation page<\/a>.<\/span><\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019ve had a number of customers asking how they can monitor their IIS application pools\u2019 status.\u00a0 It turns out there is a handy performance counter that can do that. \u00a0 \u00a0 Note that a value of 3 is \u2018Running\u2019.\u00a0 So you just need to create a\u00a0Performance Monitor to watch the counter for your instance and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":5290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10,9,8],"tags":[],"class_list":["post-5289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-power-admin","category-technical","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/5289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/comments?post=5289"}],"version-history":[{"count":3,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/5289\/revisions"}],"predecessor-version":[{"id":5296,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/5289\/revisions\/5296"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media\/5290"}],"wp:attachment":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media?parent=5289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/categories?post=5289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/tags?post=5289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}