IIS Application Pool Monitoring

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
FirePowered
Posts: 1
Joined: Tue Aug 05, 2008 12:10 am

IIS Application Pool Monitoring

Post by FirePowered »

I haven't found how you can monitor/restart application pools. We have several sites running in their own application pools and sometimes the sites crash the pools and just need simple restarts.

Thanks!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, I do not see how you can check if all processes (instances) of some application are running correctly. In some cases you may use URL or HTTP test to check availability of the application.
On the other hand, IIS provides Application Pool Recycling. I think pool recycling should help to avoid such application problems.

Regards
Alex
User avatar
greyhat64
Posts: 246
Joined: Fri Mar 14, 2008 9:10 am
Location: USA

Post by greyhat64 »

FirePowered,
Take a look at what I found: http://forums.iis.net/t/1148327.aspx
With this C# sourcecode you can start/stop/recycle (I'm sure it could be translated to VBScript if you like) and it mentions the presence of an AppPoolState property.

In fact, here's another (VBScript) resource: http://learn.iis.net/page.aspx/163/mana ... -with-wmi/
The five code snippets under the "Administering Application Pools" might be what you're looking for. There's "Listing Application Pools" and "Getting the State" snippets for monitoring. And for Action profiles there are snippets to Start, Stop, and Recycle application pools.

Please read thoroughly, I've only done a cursory review of these postings, and there appears to be some noted difference between IIS 6.0 and 7.0, so you may need to adjust your code to accommodate your environment (or have the script identify IIS version and make the appropriate call. 8) )

And for those of you, like me, trying to learn Power Shell, there is: Managing IIS with the IIS 7.0 PowerShell Provider

Just promise me that when you get a working script or callable code/applet, that you will pass it along by putting it in the Library! :wink:

Regards,
Post Reply