Monitor and Server Health Group

 View Only
  • 1.  Monitor IIS Application Pool

    Posted Mar 06, 2013 05:17 PM

    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. 



  • 2.  RE: Monitor IIS Application Pool
    Best Answer

    Posted Mar 22, 2013 07:19 AM
    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?


  • 3.  RE: Monitor IIS Application Pool

    Posted Mar 22, 2013 10:38 AM
    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: <metric created in previous steps> - 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.


  • 4.  RE: Monitor IIS Application Pool

    Posted Apr 24, 2013 05:41 PM

    Thank you Dmitri_Buloitsik!