Hi!
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: <any needed> or All instances (*)
Then Metric rule can be created using this metric with the following sample parameters:
Metrics
- 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.
Actions
- 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?