Posted by: Jerry Lees
Some of the health monitoring options for IIS 6.0 are not optimally setup for most environments. For example, recycling the workerprocess after 1740 minutes of running may not be what most people want to do… especially since when you do the math it comes to 29 hours. Having IIS recycle on it’s own every day– offset 5 hours from the previous day is likely something that is going to cause you a head ache.
Another one that may is the pinging of the IIS workerprocess. However, changing a bunch of servers and ensuring each is consistant can be a pain. Enter VBScript, plus Microsoft has already written the code for us in adsutil.vbs!!
To turn on
To enable application pool health monitoring by using Adsutil.vbs at the command prompt, type:
cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/ApplicationPoolName/PingingEnabled TRUE
Note: Be sure to change TRUE to FALSE if you want to turn it off.
To change the ping interval by using Adsutil.vbs at the command prompt, type:
cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/ApplicationPoolName/PingInterval n
Note: Be sure and replace n with the number of seconds that you want to elapse between pings.