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!
IIS Application Pool Monitoring
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
On the other hand, IIS provides Application Pool Recycling. I think pool recycling should help to avoid such application problems.
Regards
Alex
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.
)
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!
Regards,
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.

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!

Regards,