Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

Monitor IIS Application Pool

Created: 06 Mar 2013 • Updated: 24 Apr 2013 | 3 comments
This issue has been solved. See solution.

Is there a way to use Monitor solution 7.1 to determine if an IIS application pool is running or not?  I would like to trigger an alert if an application pool goes down for some reason. 

Operating Systems:

Comments 3 CommentsJump to latest comment

Dmitri_Buloitsik's picture


It's rather simple to monitor App Pool state on Windows Server 2008 R2 with IIS7 using, for example, Performance Counter metric with the following parameters:
- Performance object: APP_POOL_WAS
- Counter: Current Application Pool State
- Instance: or All instances (*)

Then Metric rule can be created using this metric with the following sample parameters:
- Condition: Equal to
- Value Type: Constant
- Value: 5 /** Stopped state on Windows 2008 R2 - there can be added rule for any other state. Unfortunately it's not not possible to use only "Not Equal to 3" (running state) while using All instances in metric, since _Total instance value differs from ones ones other instances use.

- Set severity to: Critical

Unfortunately there is no such obvious way for pre-Win2008R2 systems. I will try to get more information on that.

On what OS-s do you want to monitor App Pool state?

Dmitri_Buloitsik's picture

Found the way to be able to monitor Application Pool state on both Windows 2003 and 2008 servers.
It can be done via WMI metric.
!!! The pre-requisite for this metric to work on 2008: IIS 6 Management Compatibility should be installed on 2008 servers.

So you need just create agent-based WMI metric with the following parameters:
- Namespace: root\MicrosoftIISv2
- Class Name: IIsApplicationPoolSetting
- Counter: AppPoolState
- Instance remains empty (so if any instance of AppPool stops, alert will be raised). Or you can provide single needed instance name like W3SVC/APPPOOLS/MyAppPool

Then create Metric rule using the created metric with the following parameters
in Metrics section:
- Metric:
- Condition: Is not equal to
- Value Type: Constant
- Value: 2
in Actions section:
- Set severity to: Critical (or whatever you like)

This combination of metric+rule will successfully detect Application pools' stop state and raise alert in event console.